Browse Source
When rewriting the program headers, don't warn an empty PT_LOAD with the program headers. bfd/ PR binutils/30508 * elf.c (rewrite_elf_program_header): Don't warn if an empty PT_LOAD contains the program headers. ld/ PR binutils/30508 * testsuite/ld-elf/pr30508.d: New file. * testsuite/ld-elf/pr30508.s: Likewise.binutils-2_41-release-point
3 changed files with 29 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||
#ld: -z separate-code |
|||
#objcopy_linked_file: -R .foo |
|||
#readelf: -lW |
|||
#target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi |
|||
#xfail: h8300-*-* mips*-*-* rx-*-linux* |
|||
|
|||
#... |
|||
Section to Segment mapping: |
|||
Segment Sections... |
|||
#... |
|||
0. |
|||
#... |
|||
0. .text |
|||
@ -0,0 +1,14 @@ |
|||
.text |
|||
.global start /* Used by SH targets. */ |
|||
start: |
|||
.global _start |
|||
_start: |
|||
.global __start |
|||
__start: |
|||
.global main /* Used by HPPA targets. */ |
|||
main: |
|||
.globl _main /* Used by LynxOS targets. */ |
|||
_main: |
|||
.dc.a 0 |
|||
.section .foo,"ax",%progbits |
|||
.dc.a 0 |
|||
Loading…
Reference in new issue