Re: unaligned access using bash on glibc 2.5

"John David Anglin" <[email protected]>
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
> 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.

Dave
-- 
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.