binutils-gdb/include/coff
Christian Eggers 618265039f Introduce new section flag: SEC_ELF_OCTETS
All symbols, sizes and relocations in this section are octets instead of
bytes.  Required for DWARF debug sections as DWARF information is
organized in octets, not bytes.

bfd/
	* section.c (struct bfd_section): New flag SEC_ELF_OCTETS.
	* archures.c (bfd_octets_per_byte): New parameter sec.
	If section is not NULL and SEC_ELF_OCTETS is set, one octet es
	returned [ELF targets only].
	* bfd.c (bfd_get_section_limit): Provide section parameter to
	bfd_octets_per_byte.
	* bfd-in2.h: regenerate.
	* binary.c (binary_set_section_contents): Move call to
	bfd_octets_per_byte into section loop. Provide section parameter
	to bfd_octets_per_byte.
	* coff-arm.c (coff_arm_reloc): Provide section parameter
	to bfd_octets_per_byte.
	* coff-i386.c (coff_i386_reloc): likewise.
	* coff-mips.c (mips_reflo_reloc): likewise.
	* coff-x86_64.c (coff_amd64_reloc): likewise.
	* cofflink.c (_bfd_coff_link_input_bfd): likewise.
	(_bfd_coff_reloc_link_order): likewise.
	* elf.c (_bfd_elf_section_offset): likewise.
	(_bfd_elf_make_section_from_shdr): likewise.
	Set SEC_ELF_OCTETS for sections with names .gnu.build.attributes,
	.debug*, .zdebug* and .note.gnu*.
	* elf32-msp430.c (rl78_sym_diff_handler): Provide section parameter
	to bfd_octets_per_byte.
	* elf32-nds.c (nds32_elf_get_relocated_section_contents): likewise.
	* elf32-ppc.c (ppc_elf_addr16_ha_reloc): likewise.
	* elf32-pru.c (pru_elf32_do_ldi32_relocate): likewise.
	* elf32-s12z.c (opru18_reloc): likewise.
	* elf32-sh.c (sh_elf_reloc): likewise.
	* elf32-spu.c (spu_elf_rel9): likewise.
	* elf32-xtensa.c (bfd_elf_xtensa_reloc): likewise
	* elf64-ppc.c (ppc64_elf_brtaken_reloc): likewise.
	(ppc64_elf_addr16_ha_reloc): likewise.
	(ppc64_elf_toc64_reloc): likewise.
	* elflink.c (bfd_elf_final_link): likewise.
	(bfd_elf_perform_complex_relocation): likewise.
	(elf_fixup_link_order): likewise.
	(elf_link_input_bfd): likewise.
	(elf_link_sort_relocs): likewise.
	(elf_reloc_link_order): likewise.
	(resolve_section): likewise.
	* linker.c (_bfd_generic_reloc_link_order): likewise.
	(bfd_generic_define_common_symbol): likewise.
	(default_data_link_order): likewise.
	(default_indirect_link_order): likewise.
	* srec.c (srec_set_section_contents): likewise.
	(srec_write_section): likewise.
	* syms.c (_bfd_stab_section_find_nearest_line): likewise.
	* reloc.c (_bfd_final_link_relocate): likewise.
	(bfd_generic_get_relocated_section_contents): likewise.
	(bfd_install_relocation): likewise.
	For section which have SEC_ELF_OCTETS set, multiply output_base
	and output_offset with bfd_octets_per_byte.
	(bfd_perform_relocation): likewise.
include/
	* coff/ti.h (GET_SCNHDR_SIZE, PUT_SCNHDR_SIZE, GET_SCN_SCNLEN),
	(PUT_SCN_SCNLEN): Adjust bfd_octets_per_byte calls.
binutils/
	* objdump.c (disassemble_data): Provide section parameter to
	bfd_octets_per_byte.
	(dump_section): likewise
	(dump_section_header): likewise. Show SEC_ELF_OCTETS flag if set.
gas/
	* as.h: Define SEC_OCTETS as SEC_ELF_OCTETS if OBJ_ELF.
	* dwarf2dbg.c: (dwarf2_finish): Set section flag SEC_OCTETS for
	.debug_line, .debug_info, .debug_abbrev, .debug_aranges, .debug_str
	and .debug_ranges sections.
	* write.c (maybe_generate_build_notes): Set section flag
	SEC_OCTETS for .gnu.build.attributes section.
	* frags.c (frag_now_fix): Don't divide by OCTETS_PER_BYTE if
	SEC_OCTETS is set.
	* symbols.c (resolve_symbol_value): Likewise.
ld/
	* ldexp.c (fold_name): Provide section parameter to
	bfd_octets_per_byte.
	* ldlang (init_opb): New argument s. Set opb_shift to 0 if
	SEC_ELF_OCTETS for the current section is set.
	(print_input_section): Pass current section to init_opb.
	(print_data_statement,print_reloc_statement,
	print_padding_statement): Likewise.
	(lang_check_section_addresses): Call init_opb for each
	section.
	(lang_size_sections_1,lang_size_sections_1,
	lang_do_assignments_1): Likewise.
	(lang_process): Pass NULL to init_opb.
2019-11-25 14:32:19 +10:30
..
ChangeLog-0415 binutils ChangeLog rotation 2016-01-01 22:59:17 +10:30
ChangeLog-9103 Add copyright notices 2012-12-10 12:48:03 +00:00
alpha.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
arm.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
ecoff.h Include coff/sym.h from coff/ecoff.h 2019-01-22 20:35:59 -07:00
external.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
go32exe.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
i386.h Allow objdump to recognise the System.Runtime.dll files that get shipped with .NET Core 2.1. 2019-07-23 09:44:57 +01:00
ia64.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
internal.h Fix the size of the dos_message field in the internal_extra_pe_filehdr structure on hosts where sizeof(long) == 8. 2019-10-29 08:02:34 +00:00
mcore.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
mips.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
msdos.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
pe.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
powerpc.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
rs6k64.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
rs6000.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
sh.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
sym.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
symconst.h ChangeLog: 2009-06-03 18:08:14 +00:00
ti.h Introduce new section flag: SEC_ELF_OCTETS 2019-11-25 14:32:19 +10:30
tic4x.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
tic30.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
tic54x.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
tic80.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
x86_64.h Allow objdump to recognise the System.Runtime.dll files that get shipped with .NET Core 2.1. 2019-07-23 09:44:57 +01:00
xcoff.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
z8k.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
z80.h Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30