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
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)
|
|