[PATCH v6 0/3] elf: Restore support for _r_debug interpositions and copy relocations

Florian Weimer fweimer@redhat.com
Thu Jul 3 18:25:55 GMT 2025


CI on Arm fails with:

FAIL: elf/tst-nolink-libc-2
original exit status 127
/home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/glibc-glibc.git~master/elf/tst-nolink-libc-2: symbol lookup error: /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/glibc-glibc.git~master/elf/tst-nolink-libc-2: undefined symbol: _r_debug

I'm not yet sure why this happens.  It doesn't seem to be
-Wl,--as-needed.

Maybe the test is buggy because it's not having PT_INTERP on other
architectures and only works on Arm?

This is what I see on POWER and others:

[fw@cfarm120 build]$ eu-readelf -l elf/tst-nolink-libc-2
Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
  LOAD           0x000000 0x0000000010000000 0x0000000010000000 0x00017c 0x00017c R   0x10000
  LOAD           0x010000 0x0000000010010000 0x0000000010010000 0x00005c 0x00005c R E 0x10000
  LOAD           0x020000 0x0000000010020000 0x0000000010020000 0x000000 0x000000 R   0x10000
  NOTE           0x000158 0x0000000010000158 0x0000000010000158 0x000024 0x000024 R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW  0x10

But there's clearly a -Wl,--dynamic-linker=/home/fw/build/elf/ld.so
linker option.

Thanks,
Florian



More information about the Libc-alpha mailing list