PR26936 testsuite fixes
authorAlan Modra <amodra@gmail.com>
Thu, 26 Nov 2020 07:15:26 +0000 (17:45 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 26 Nov 2020 08:10:10 +0000 (18:40 +1030)
Many targets fail this test due to -z noseparate-code not being
supported, or _start not being the proper entry symbol, or "as -g"
something other than "generate debug".

PR 26936
* testsuite/ld-elf/pr26936.d: Pass --gen-debug to gas rather than -g.
Only run when -shared -z options are supported.
* testsuite/ld-elf/pr26936b.s: Define more entry symbols.

ld/ChangeLog
ld/testsuite/ld-elf/pr26936.d
ld/testsuite/ld-elf/pr26936b.s

index 005d54e80da9a235ae7ad82d0d36ead1506264a8..fb831d997bb1a3b04b90bac1e2de8776c047a621 100644 (file)
@@ -1,3 +1,10 @@
+2020-11-26  Alan Modra  <amodra@gmail.com>
+
+       PR 26936
+       * testsuite/ld-elf/pr26936.d: Pass --gen-debug to gas rather than -g.
+       Only run when -shared -z options are supported.
+       * testsuite/ld-elf/pr26936b.s: Define more entry symbols.
+
 2020-11-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/26936
index b007e83ff203a8d23e843c17142c05c16c3ba684..3c854fa0b5c8557229158c90bdc1bf1f45ec2390 100644 (file)
@@ -1,9 +1,10 @@
 #source: pr26936a.s
 #source: pr26936b.s
 #source: pr26936c.s
-#as: -g
+#as: --gen-debug
 #ld: -z noseparate-code -Ttext-segment 0x10000 -z max-page-size=0x1000
 #readelf: -wL
+#target: [check_shared_lib_support]
 
 #...
 CU: .*/pr26936c.s:
index 433528c33e95bd220bd4816f12a261dd7b1d7cda..6ce9fd044178d09d583e5ae1b723f31253db8f17 100644 (file)
@@ -1,7 +1,19 @@
        .text
-       .globl _start
+       .type start,"function"
+       .global start
+start:
+       .type _start,"function"
+       .global _start
 _start:
-       .type   _start, %function
+       .type __start,"function"
+       .global __start
+__start:
+       .type main,"function"
+       .global main
+main:
+       .type _main,"function"
+       .global _main
+_main:
        .nop
        .section .text.__x86.get_pc_thunk.bx,"axG",%progbits,__x86.get_pc_thunk.bx,comdat
        .globl  __x86.get_pc_thunk.bx
This page took 0.031467 seconds and 4 git commands to generate.