This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/21501] get-dynamic-info assertion incorrectly triggered for i686 on x86_64 : 'Assertion `info[DT_RPATH] == NULL' failed!'


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

--- Comment #3 from Jason Vas Dias <jason.vas.dias at gmail dot com> ---
OK, I've re-configured and rebuilt everything from scratch,
to ensure there is NOTHING in my configuration environment
that could possibly trigger any -R / -rpath setting :
 $ env | grep LD
 $ env | grep \\-R
 $ env | grep \\-rpath
 $  /usr/os_src/glibc/configure --prefix=/usr --libdir=/usr/lib32
--enable-shared --without-selinux --disable-werror --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu 2>&1 | tee configure.log
 $ egrep -i 'rpath|run_path|\-R' configure.log
checking for i686-pc-linux-gnu-readelf... no
checking for -fno-toplevel-reorder -fno-section-anchors... yes
 $ make -j4 ...
 ( now build fails, because: )

 I can now reproduce this issue with the command:

 $ gcc -m32  -nostdlib -nostartfiles -shared 
   -o /usr/build/linux/glibc-x86/elf/ld.so.new          \
          -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs      
\
          /usr/build/linux/glibc-x86/elf/librtld.os \
          -Wl,--version-script=/usr/build/linux/glibc-x86/ld.map               
\
          -Wl,-soname=ld-linux.so.2                     \
          -Wl,-defsym=_begin=0
 $ echo $?; readelf -d ld.so.new | grep PATH
 0 
 0x0000000f (RPATH)                      Library rpath: []
 $ 

AARGH! where is this empty RPATH coming from ?
I'm going to have to change the assert to add:
  assert ((info[DT_RPATH] == NULL) || (info[DT_RPATH][0] == '\0'))

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]