lm32-linux ld testsuite fails

Message ID 20190320225408.GY20126@bubble.grove.modra.org
State New
Headers show
Series
  • lm32-linux ld testsuite fails
Related show

Commit Message

Alan Modra March 20, 2019, 10:54 p.m.
A number of the fails are due to ld supporting the creation of shared
libraries but not allowing linking against them without using an
option like -Bdynamic.  That seems really odd to me, so I'm applying
this fix to cure these test fails:

FAIL: Symbol export class test (final shared object)
FAIL: PROVIDE_HIDDEN test 4
FAIL: PROVIDE_HIDDEN test 6
FAIL: PROVIDE_HIDDEN test 10
FAIL: PROVIDE_HIDDEN test 12
FAIL: Build pr22471b.so
FAIL: Build pr22649-2b.so
FAIL: Build pr22649-2d.so
FAIL: PR ld/20828 dynamic symbols with section GC (plain)
FAIL: PR ld/20828 dynamic symbols with section GC (version script)
FAIL: PR ld/20828 dynamic symbols with section GC (versioned)
FAIL: PR ld/21233 dynamic symbols with section GC (--undefined)
FAIL: PR ld/21233 dynamic symbols with section GC (--require-defined)
FAIL: PR ld/21233 dynamic symbols with section GC (EXTERN)
FAIL: Build pr22150
FAIL: PR ld/14170
FAIL: Link using broken linker script
FAIL: pr17068 link --as-needed lib in group
FAIL: ld-gc/pr20022

Now if lm32-linux-ld really ought to behave as it does prior to this
patch I'm quite happy to have this patch reverted, but in that case
please go through the ld testsuite adjusting tests to pass -Bdynamic
for lm32 as necessary.

	* emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/ld/emulparams/elf32lm32fd.sh b/ld/emulparams/elf32lm32fd.sh
index 32a4d588c9..52e0822b62 100644
--- a/ld/emulparams/elf32lm32fd.sh
+++ b/ld/emulparams/elf32lm32fd.sh
@@ -1,5 +1,6 @@ 
 . ${srcdir}/emulparams/elf32lm32.sh
 unset STACK_ADDR
+unset DYNAMIC_LINK
 OUTPUT_FORMAT="elf32-lm32fdpic"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 TEMPLATE_NAME=elf32