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. |
||
---|---|---|
.. | ||
abi32.sd | ||
abi32.xd | ||
abi64.sd | ||
abi64.xd | ||
abixx-noexp.sd | ||
cmpct1.sd | ||
cmpct1.xd | ||
crange-1.s | ||
crange-2a.s | ||
crange-2b.s | ||
crange-2c.s | ||
crange-2d.s | ||
crange-2e.s | ||
crange-2f.s | ||
crange-2g.s | ||
crange-2h.s | ||
crange-2i.s | ||
crange1.rd | ||
crange2.rd | ||
crange3-cmpct.rd | ||
crange3-media.rd | ||
crange3.dd | ||
crange3.rd | ||
crangerel1.rd | ||
crangerel2.rd | ||
dlsection-1.s | ||
dlsection.sd | ||
endian.dbd | ||
endian.dld | ||
endian.ld | ||
endian.s | ||
endian.sbd | ||
endian.sld | ||
gotplt.d | ||
gotplt.map | ||
gotplt.s | ||
init-cmpct.d | ||
init-media.d | ||
init.s | ||
init64.d | ||
mix1-noexp.sd | ||
mix1.sd | ||
mix1.xd | ||
mix2-noexp.sd | ||
mix2.sd | ||
mix2.xd | ||
rd-sh64.exp | ||
rel-1.s | ||
rel-2.s | ||
rel32.xd | ||
rel64.xd | ||
relax.exp | ||
relax1.s | ||
relax2.s | ||
relax3.s | ||
relax4.s | ||
reldl-1.s | ||
reldl-2.s | ||
reldl32.rd | ||
reldl64.rd | ||
relfail.exp | ||
relfail.s | ||
sh64-1.s | ||
sh64-2.s | ||
sh64.exp | ||
shcmp-1.s | ||
shdl-1.s | ||
shdl-2.s | ||
shdl32.xd | ||
shdl64.sd | ||
shdl64.xd | ||
shmix-1.s | ||
shmix-2.s | ||
shmix-3.s | ||
stobin-0-dso.d | ||
stobin-1.d | ||
stobin.s | ||
stolib.s |