Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Alexander Gabert <pappy@g.o>
From: Ned Ludd <solar@g.o>
Subject: Re: [gentoo-hardened] Re: (was) uclibc base system; arm and pie
Date: 24 Jun 2004 03:48:31 -0400
On Thu, 2004-06-24 at 03:35, Alexander Gabert wrote:
> Peter S. Mazinger wrote:
> 
> > On 23 Jun 2004, Ned Ludd wrote:

> >>Both arm & mips fail a simple 
> >>echo 'int main() { return 0; }' > main.c
> >>gcc -o main main.c -pie
> >>
> >>/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x38): In function
> >>`__libc_csu_init':
> >>: undefined reference to `__init_array_start'
> >>/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x3c): In function
> >>`__libc_csu_init':
> >>: undefined reference to `__init_array_end'
> >>
> >>I think these symbols are provided by linker scripts. 
> >>Seen anything floating around where others have run into the same thing?
> >>If so recall the solution?


> > Is the used gcc surely patched for pie?


[snip]


> > 
> we already picked that out:
> ld does not have a linker script for -pie on the affected arches:
> the linker script normally contains a PROVIDE line for that.
> simply copy the linker script for shared executables to the extension of 
> pie executables, this should be the "hack sluggish way" of doing things.

I tested the command line you suggested with coping one script name to
another but unfortunately that did not solve the problem on arm.

> 
> 
> bye,
> 
> Alex (sunburned and happy pappy)
-- 
Ned Ludd <solar@g.o>
Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer
Attachment:
signature.asc (This is a digitally signed message part)
References:
Re: (was) uclibc base system; arm and pie
-- Peter S. Mazinger
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: (was) uclibc base system; arm and pie
Next by thread:
Re: (was) uclibc base system; arm and pie
Previous by date:
Re: (was) uclibc base system; arm and pie
Next by date:
Re: (was) uclibc base system; arm and pie


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.