diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2007-05-10 14:46:48 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2007-05-10 14:46:48 +0000 |
commit | 8c252fd9c3e28b18ce8982d1c798ea569969a0a4 (patch) | |
tree | e549bbcaa17f83434d39c40c346aacfb305d34a7 /ld | |
parent | 1430be3e9032ac32e916de1a7e1dd360ac2ecb0a (diff) | |
download | gdb-8c252fd9c3e28b18ce8982d1c798ea569969a0a4.zip gdb-8c252fd9c3e28b18ce8982d1c798ea569969a0a4.tar.gz gdb-8c252fd9c3e28b18ce8982d1c798ea569969a0a4.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/multibss1.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/multibss1.s | 11 |
3 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 885b706..ec50abe 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-05-10 Richard Sandiford <richard@codesourcery.com> + + * ld-elf/multibss1.d, ld-elf/multibss1.s: New test. + 2007-04-27 Nathan Sidwell <nathan@codesourcery.com> * ld-m68k/plt1-isac.d: New. diff --git a/ld/testsuite/ld-elf/multibss1.d b/ld/testsuite/ld-elf/multibss1.d new file mode 100644 index 0000000..8074fe3 --- /dev/null +++ b/ld/testsuite/ld-elf/multibss1.d @@ -0,0 +1,9 @@ +#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 diff --git a/ld/testsuite/ld-elf/multibss1.s b/ld/testsuite/ld-elf/multibss1.s new file mode 100644 index 0000000..3e168b6 --- /dev/null +++ b/ld/testsuite/ld-elf/multibss1.s @@ -0,0 +1,11 @@ + .macro makebss + .section .bss_\@,"aw",@nobits + .space 0x10000 + .endm + + .rept 80 + makebss + .endr + + .text + .space 0x10 |