diff options
author | Alan Modra <amodra@gmail.com> | 2004-09-22 06:45:39 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-09-22 06:45:39 +0000 |
commit | b301b24869fffd3b6149f27b3ebadaaf8865e461 (patch) | |
tree | 1f3f52bf178a6098a7aa6d66dfe7f581d74628b1 /bfd/ChangeLog | |
parent | ba52c19a30a809ef2c9d943507203e5c5fd82612 (diff) | |
download | gdb-b301b24869fffd3b6149f27b3ebadaaf8865e461.zip gdb-b301b24869fffd3b6149f27b3ebadaaf8865e461.tar.gz gdb-b301b24869fffd3b6149f27b3ebadaaf8865e461.tar.bz2 |
bfd/
* elf.c (IS_LOADED): Define.
(assign_file_positions_for_segments): Don't round up file offset of
PT_LOAD segments containing no SEC_LOAD sections, instead round down.
Delete code handling link script adjustment of lma. Do the adjust
in later code handling similar ajustments. Remove dead code error
check. Warn if section lma would require a negative offset
adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
Use p_vaddr + p_memsz inside section loop in place of voff. Don't
update voff in section loop. Change voff in segment loop to be an
adjustment on top of "off". Set sec->filepos and update "off" later.
Test for loadable sections consistently using IS_LOADED. Similarly,
test for alloc-only sections other than .tbss consistently.
Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
Tidy PT_NOTE handling. Use %B and %A in error messages.
(assign_file_positions_except_relocs): Use %B in error message.
ld/testsuite/
* ld-scripts/overlay-size.d: Don't check .mbss lma.
* ld-sh/sh64/mix1.xd: Update for changed .bss file offset.
* ld-sh/sh64/shdl32.xd: Likewise.
* ld-sh/sh64/shdl64.xd: Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 27813dc..e3c341b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,21 @@ +2004-09-22 Alan Modra <amodra@bigpond.net.au> + + * elf.c (IS_LOADED): Define. + (assign_file_positions_for_segments): Don't round up file offset of + PT_LOAD segments containing no SEC_LOAD sections, instead round down. + Delete code handling link script adjustment of lma. Do the adjust + in later code handling similar ajustments. Remove dead code error + check. Warn if section lma would require a negative offset + adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz. + Use p_vaddr + p_memsz inside section loop in place of voff. Don't + update voff in section loop. Change voff in segment loop to be an + adjustment on top of "off". Set sec->filepos and update "off" later. + Test for loadable sections consistently using IS_LOADED. Similarly, + test for alloc-only sections other than .tbss consistently. + Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME. + Tidy PT_NOTE handling. Use %B and %A in error messages. + (assign_file_positions_except_relocs): Use %B in error message. + 2004-09-17 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9. |