mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
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.
10 lines
183 B
Makefile
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
|