old-cross-binutils/ld/testsuite/ld-elf/ehdr_start.s
Roland McGrath 62655c7b8b bfd/
* 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.
2012-06-22 16:52:33 +00:00

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