[parisc-linux] unaligned access using bash on glibc 2.5

Carlos O'Donell carlos at systemhalted.org
Sun May 6 20:08:06 MDT 2007


On 5/6/07, John David Anglin <dave at hiauly1.hia.nrc.ca> wrote:
> > Yes, I fixed this in my local tree already. For some reason we aren't
> > liking in libgcc_s.so.
> >
> > http://www.parisc-linux.org/~carlos/2007-05-06-nptl.diff
> >
> > Dave, are our specs broken in gcc?
>
> Don't think so.
>
> The link command specifies -nostdlib and -lgcc.  The former means
> that gcc shouldn't provide any standard libraries.  The latter links
> against libgcc.a.  It doesn't have the unwind stuff.  You need to
> either add -lgcc_eh or use -lgcc_s in the link command.
>
> The default for the gcc driver is to link using the archive version
> of libgcc.  You can add --shared-libgcc to cause it to use the shared
> version.  The g++ driver uses the shared version by default.  Of
> course, this doesn't happen when -nostdlib is specified.

Interesting. Why isn't it this patch needed on any other arch? :-)

Cheers,
Carlos.



More information about the parisc-linux mailing list