https://sourceware.org/bugzilla/show_bug.cgi?id=26882
Bug ID: 26882 Summary: --enable-textrel-check=warning exposes a few test failures on powerpc and others Product: binutils Version: 2.35.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- It's a forward of test failures observed downstream https://bugs.gentoo.org/754246 by ernsteiswuerfel. Here is a reproducer: $ ../binutils-gdb/configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=powerpc-unknown-linux-gnu --enable-textrel-check=warning $ make $ make -C ld check RUNTESTFLAGS='powerpc.exp' Running /home/slyfox/dev/git/binutils-gdb/ld/testsuite/ld-powerpc/powerpc.exp ... FAIL: Reloc section order FAIL: TLS32 shared FAIL: TLS shared FAIL: TLSTOC shared FAIL: ld-powerpc/dotsym3 FAIL: ld-powerpc/dotsym4 FAIL: ld-powerpc/ppc476-shared FAIL: ld-powerpc/ppc476-shared2 Test failures happen because tests have textrels that generate warning on stderr. Here is a 'Reloc section order' example: ld/testsuite/ld-powerpc/reloc.s .section echidna .long .text .section platypus,"ax" .long .text .text b _start@plt nop ld $ ../gas/as-new -o reloc.o -a32 reloc.s ld $ ./ld-new --hash-style=sysv -o reloc.so -z norelro -melf32ppc -shared -z nocombreloc reloc.o ld-new: warning: creating DT_TEXTREL in a shared object I think the TEXTREL warning is correct here and should be ignored by test. Removing '--enable-textrel-check=warning' from ./configure makes all tests pass. -- You are receiving this mail because: You are on the CC list for the bug.