binutils-gdb/ld/testsuite/ld-elf/multibss1.d
Richard Sandiford 8c252fd9c3 bfd/
* elf.c (assign_file_positions_for_load_sections): Use p_memsz
	rather than p_filesz to calculate the LMA of the end of a segment.

ld/testsuite/
	* ld-elf/multibss1.d, ld-elf/multibss1.s: New test.
2007-05-10 14:46:48 +00:00

10 lines
183 B
Makefile

#source: multibss1.s
#ld: -e 0
#readelf: -l --wide
#target: *-*-linux*
#...
+LOAD +0x[^ ]+ +0x[^ ]+ +0x[^ ]+ +0x[^ ]+ +0x500000 .*
# p_offset p_vaddr p_paddr p_filesz
#pass