8c252fd9c3
* 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.
9 lines
183 B
Makefile
9 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
|