b301b24869
* 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. |
||
---|---|---|
.. | ||
align.exp | ||
align.s | ||
align.t | ||
assert.exp | ||
assert.s | ||
assert.t | ||
cross1.c | ||
cross1.t | ||
cross2.c | ||
cross2.t | ||
cross3.c | ||
crossref.exp | ||
data.d | ||
data.exp | ||
data.s | ||
data.t | ||
defined2.d | ||
defined2.t | ||
defined3.d | ||
defined3.t | ||
defined.exp | ||
defined.s | ||
defined.t | ||
dynamic-sections-1.s | ||
dynamic-sections-2.s | ||
dynamic-sections.d | ||
dynamic-sections.exp | ||
dynamic-sections.t | ||
map-address.d | ||
map-address.exp | ||
map-address.t | ||
overlay-size-map.d | ||
overlay-size.d | ||
overlay-size.exp | ||
overlay-size.s | ||
overlay-size.t | ||
phdrs2.exp | ||
phdrs2.s | ||
phdrs2.t | ||
phdrs.exp | ||
phdrs.s | ||
phdrs.t | ||
provide-1.d | ||
provide-1.s | ||
provide-1.t | ||
provide-2.d | ||
provide-2.s | ||
provide-2.t | ||
provide-3.d | ||
provide-3.s | ||
provide-3.t | ||
provide.exp | ||
script.exp | ||
script.s | ||
script.t | ||
scriptm.t | ||
size-1.d | ||
size-1.s | ||
size-1.t | ||
size-2.d | ||
size-2.s | ||
size-2.t | ||
size.exp | ||
sizeof.exp | ||
sizeof.s | ||
sizeof.t | ||
weak1.s | ||
weak2.s | ||
weak.exp | ||
weak.t |