]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add PPC libgcc problem description.
authorUlrich Drepper <drepper@redhat.com>
Sun, 5 Sep 1999 19:35:36 +0000 (19:35 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 5 Sep 1999 19:35:36 +0000 (19:35 +0000)
FAQ.in

diff --git a/FAQ.in b/FAQ.in
index 5861ff6ac507ff651f22254dc2ec60f51953eea0..4df792ddb6116bccfc1dda4dea8c32d870f84b13 100644 (file)
--- a/FAQ.in
+++ b/FAQ.in
@@ -569,7 +569,7 @@ not a symlink to libc.so.6.  It should look something like this:
 
 GROUP ( libc.so.6 libc_nonshared.a )
 
-??     When I run an executable on one system which I compiled on
+??excpt        When I run an executable on one system which I compiled on
        another, I get dynamic linker errors.  Both systems have the same
        version of glibc installed.  What's wrong?
 
@@ -600,6 +600,24 @@ newer since we have explicitly add references to the functions causing the
 problem.  But you nevertheless should use EGCS for other reasons
 (see ?binsize).
 
+{GK} On some Linux distributions for PowerPC, you can see this when you have
+built gcc or egcs from the Web sources (gcc versions 2.95 or earlier), then
+re-built glibc.  This happens because in these versions of gcc, exception
+handling is implemented using an older method; the people making the
+distributions are a little ahead of their time.
+
+A quick solution to this is to find the libgcc.a file that came with the
+distribution (it would have been installed under /usr/lib/gcc-lib), do 
+`ar x libgcc.a frame.o' to get the frame.o file out, and add a line saying
+`LDLIBS-c.so += frame.o' to the file `configparms' in the directory you're
+building in.  You can check you've got the right `frame.o' file by running
+`nm frame.o' and checking that it has the symbols defined that you're
+missing.
+
+This will let you build glibc with the C compiler.  The C++ compiler
+will still be binary incompatible with any C++ shared libraries that
+you got with your distribution.
+
 ??     How can I compile gcc 2.7.2.1 from the gcc source code using
        glibc 2.x?