62655c7b8b
* elf.c (assign_file_positions_for_non_load_sections): Define __ehdr_start symbol if it's referenced and there's a PT_LOAD segment that covers both the file and program headers. ld/ * NEWS: Mention __ehdr_start. ld/testsuite/ * ld-elf/ehdr_start.s: New file. * ld-elf/ehdr_start.d: New file.
10 lines
131 B
ArmAsm
10 lines
131 B
ArmAsm
.text
|
|
.globl _start
|
|
_start:
|
|
.space 16
|
|
|
|
.section .rodata,"a",%progbits
|
|
.globl foo
|
|
foo:
|
|
.weak __ehdr_start
|
|
.dc.a __ehdr_start
|