bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/16865] New: sysroot not stripped for libraries specified with fu


From: aadne at hovda dot no
Subject: [Bug ld/16865] New: sysroot not stripped for libraries specified with full path
Date: Tue, 22 Apr 2014 09:16:59 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16865

            Bug ID: 16865
           Summary: sysroot not stripped for libraries specified with full
                    path
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: aadne at hovda dot no
              Host: x86_64-unknown-linux-gnu
            Target: powerpc-ibm-aix5.1.0.0
             Build: x86_64-unknown-linux-gnu

Hi

If I pass the full path to a shared library on the link command line (no -l/-L
options), the import section in the resulting xcoff file will not be stripped
from the sysroot prefix for that library. I'm setting -blibpath to
/usr/lib:/lib so the first general import entry (index 0) gets properly set,
but the specific imports (index > 0) still contain the wrong search path.


Here's an example run:

/openit/devel/toolchains/bin/powerpc-ibm-aix5.1.0.0-ld \
--sysroot=/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root \
-bpT:0x10000000 \
-bpD:0x20000000 \
-btextro \
-bnodelcsect \
-bexport:/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libg.exp
\
-o../../../../../bin/openit_messageconsole \
/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/crt0_r.o \
-L/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/pthread/powerpc
\
-L/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4 \
-L/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/../../../../powerpc-ibm-aix5.1.0.0/lib
\
-L/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib \
CMakeFiles/openit_messageconsole.dir/__/__/__/__/programs/fox/messageconsole/FXMessageConsole.cpp.o
\
CMakeFiles/openit_messageconsole.dir/__/__/__/__/programs/fox/messageconsole/messageconsole.cpp.o
\
CMakeFiles/openit_messageconsole.dir/__/__/__/__/programs/fox/messageconsole/MessageConsoleMain.cpp.o
\
-brtl \
-bexpall \
../../../../../lib/libnetwork.a \
../../../../../lib/libcommon.a \
../../../../../lib/libfox.a \
../../../../../lib/libencryption.a \
../../../../../lib/libjsoncpp.a \
-lnsl \
../../../../../lib/libpng.a \
../../../../../lib/libz.a \
/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libSM.a \
/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libICE.a \
/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libX11.a \
/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libXext.a \
-blibpath:/usr/lib:/lib \
-lstdc++ \
-lm \
/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/pthread/powerpc/libgcc.a
\
-lg \
-lpthreads \
-lc \
/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/pthread/powerpc/libgcc.a


And the corresponding "dump -H" output:


                        ***Loader Section***
                      Loader Header Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001       0x00000175       0x00005747       0x000000ea

#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x00000006       0x00043a6c       0x00000d70       0x00043b56


                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      /usr/lib:/lib
1      /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib
libX11.a            shr4.o
2      /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib
libXext.a           shr.o
3                                    libpthreads.a       shr_xpg5.o
4                                    libc.a              shr.o
5                                    librtl.a            shr.o

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]