binutils-gdb/include/elf
Alan Modra 30fe183248 PR4499, assign file positions assumes segment offsets increasing
This rewrites much of assign_file_positions_for_non_load_sections to
allow objcopy and strip to handle cases like that in PR4499 where
program headers were not in their usual position immediately after the
ELF file header, and PT_LOAD headers were not sorted by paddr.

	PR 4499
include/
	* elf/internal.h (struct elf_segment_map): Delete header_size.
	Add no_sort_lma and idx.
bfd/
	* elf-nacl.c (nacl_modify_segment_map): Set no_sort_lma for all
	PT_LOAD segments.
	* elf32-spu.c (spu_elf_modify_segment_map): Likewise on overlay
	PT_LOAD segments.
	* elf.c (elf_sort_segments): New function.
	(assign_file_positions_except_relocs): Use shortcuts to elfheader
	and elf_tdata.  Seek to e_phoff not sizeof_ehdr to write program
	headers.  Move PT_PHDR check..
	(assign_file_positions_for_non_load_sections): ..and code setting
	PT_PHDR p_vaddr and p_paddr, and code setting __ehdr_start value..
	(assign_file_positions_for_load_sections): ..to here.  Sort
	PT_LOAD headers.  Delete header_pad code.  Use actual number of
	headers rather than allocated in calculating size for program
	headers.  Don't assume program headers follow ELF file header.
	Simplify pt_load_count code.  Only set "off" for PT_LOAD or
	PT_NOTE in cores.
	(rewrite_elf_program_header): Set p_vaddr_offset for segments
	that include file and program headers.
	(copy_elf_program_header): Likewise, replacing header_size code.
2019-10-25 13:30:05 +10:30
..
aarch64.h Add R_AARCH64_P32_MOVW_PREL_* ELF32 relocs 2019-06-14 12:02:19 +01:00
alpha.h
arc-cpu.def
arc-reloc.def
arc.h
arm.h ARM CMSE symbols 2019-08-22 14:14:23 +09:30
avr.h
bfin.h
bpf.h include: add elf/bpf.h 2019-05-23 19:32:58 +02:00
ChangeLog-0415
ChangeLog-9103
common.h
cr16.h
cr16c.h
cris.h
crx.h
csky.h
d10v.h
d30v.h
dlx.h
dwarf.h
epiphany.h
external.h
fr30.h
frv.h
ft32.h
h8.h
hppa.h
i370.h
i386.h
i860.h
i960.h
ia64.h
internal.h PR4499, assign file positions assumes segment offsets increasing 2019-10-25 13:30:05 +10:30
ip2k.h
iq2000.h
lm32.h
m32c.h
m32r.h
m68hc11.h
m68k.h
mcore.h
mep.h
metag.h
microblaze.h
mips.h Add support for a MIPS specific .MIPS.xhash section. 2019-08-09 11:06:37 +01:00
mmix.h
mn10200.h
mn10300.h
moxie.h
msp430.h Add support for new functionality in the msp430 backend of GCC. 2019-10-07 16:34:31 +01:00
mt.h
nds32.h
nfp.h
nios2.h
or1k.h
pj.h
ppc64.h [PowerPC64] pc-relative TLS relocations 2019-07-19 18:01:25 +09:30
ppc.h
pru.h
reloc-macros.h
riscv.h
rl78.h
rx.h
s12z.h
s390.h
score.h
sh.h
sparc.h
spu.h
tic6x-attrs.h
tic6x.h
tilegx.h
tilepro.h
v850.h
vax.h
visium.h
vxworks.h
wasm32.h
x86-64.h
xc16x.h
xgate.h
xstormy16.h
xtensa.h