Alan Modra
4fbb74a605
include/elf/
...
PR 5900
* common.h (SHN_BAD): Delete.
(SHN_LORESERVE .. SHN_HIRESERVE): Move to..
* external.h: ..here.
* internal.h (SHN_LORESERVE, SHN_HIRESERVE): Define.
(SHN_LOPROC, SHN_HIPROC, SHN_LOOS, SHN_HIOS): Define.
(SHN_ABS, SHN_COMMON, SHN_XINDEX, SHN_BAD): Define.
bfd/
PR 5900
* elf-bfd.h: Include elf/internal.h after elf/external.h.
* elfcode.h (elf_swap_symbol_in): Map reserved shndx range.
(elf_swap_symbol_out): Adjust SHN_XINDEX test.
(elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values
seen in external structs.
(valid_section_index_p): Delete.
(elf_object_p): Don't increment section numbers over reserved range.
Simplify test for valid sh_link, sh_info and e_shstrndx fields.
(elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values
seen in external structs. Don't increment section numbers over
reserved range.
* elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx.
(bfd_section_from_shdr): Likewise.
(group_signature): Range check before accessing elf_elfsections.
(_bfd_elf_setup_sections): Likewise.
(bfd_section_from_shdr): Likewise.
(bfd_section_from_shdr): Don't increment section number over
reserved sections.
(assign_file_positions_for_non_load_sections): Likewise.
(assign_file_positions_except_relocs): Likewise.
(_bfd_elf_write_object_contents): Likewise.
(assign_section_numbers): Likewise. Adjust for changed SHN_*.
(prep_headers): Delete unused variable.
* elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust
for changed SHN_* values.
(check_dynsym, elf_link_input_bfd): Likewise.
(bfd_elf_final_link): Likewise. Don't skip over reserved section
range.
(elf_fixup_link_order): Check that sh_link field is valid.
* elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned.
* elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before
accesssing elf_elfsections.
* elf32-avr.c (elf32_avr_size_stubs): Likewise.
* elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise.
* elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed
SHN_* defines. Test for SHN_BAD return from
_bfd_elf_section_from_bfd_section
binutils/
PR 5900
* readelf.c (SECTION_HEADER_INDEX, SECTION_HEADER_NUM): Delete.
Remove use throughout file.
(SECTION_HEADER): Likewise.
(dump_relocations): Don't adjust st_shndx for reserved range.
(process_file_header): Mask SHN_XINDEX to values seen in external
elf structs. Simplify valid section index tests.
(get_32bit_elf_symbols, get_64bit_elf_symbols): Mask SHN_XINDEX.
Map reserved st_shndx to internal form.
(process_section_groups): Test that group symbol st_shndx is in
range, not just non-zero. Delete reserved range check.
(get_symbol_index_type): Mask "type" to 16 bits when printing PRC,
OS or RSV.
gdb/
PR 5900
* elfread.c (elf_symtab_read): Make shndx an unsigned int.
* mipsread.c: Include elf/internal.h.
(read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
to internal range.
ld/testsuite/
PR 5900
* ld-elf/sec64k.exp: Update.
2008-03-12 08:37:09 +00:00
..
2008-02-14 15:20:26 +00:00
2007-07-03 14:26:43 +00:00
2008-02-12 00:26:00 +00:00
2007-06-14 15:31:01 +00:00
2007-07-02 07:12:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-08-09 23:14:55 +00:00
2007-07-03 14:26:43 +00:00
2007-07-27 00:49:06 +00:00
2008-02-04 19:15:52 +00:00
2007-07-03 14:26:43 +00:00
2008-02-20 15:17:56 +00:00
2008-01-25 16:18:41 +00:00
2008-01-25 16:18:41 +00:00
2008-02-20 17:42:36 +00:00
2008-02-20 17:42:36 +00:00
2007-07-26 11:13:59 +00:00
2007-07-03 14:26:43 +00:00
2008-02-11 13:52:02 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-12 08:37:09 +00:00
2006-06-05 00:12:59 +00:00
2006-06-05 00:12:59 +00:00
2006-06-05 00:12:59 +00:00
2007-01-09 14:29:31 +00:00
2008-01-02 21:41:02 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-01-21 03:48:10 +00:00
2007-07-03 14:26:43 +00:00
2007-10-15 02:00:11 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-27 21:23:01 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-10-15 02:00:11 +00:00
2008-01-21 03:48:10 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-10-15 02:00:11 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-08-02 16:02:01 +00:00
2007-08-13 01:45:11 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 15:20:26 +00:00
2007-10-16 15:15:50 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-09-11 16:07:50 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-04 19:15:52 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 13:02:38 +00:00
2008-02-22 15:27:38 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-12 08:37:09 +00:00
2008-03-12 08:37:09 +00:00
2007-07-03 14:26:43 +00:00
2008-02-11 22:25:03 +00:00
2007-10-12 16:11:02 +00:00
2007-07-03 14:26:43 +00:00
2008-01-11 09:07:04 +00:00
2007-07-03 14:26:43 +00:00
2007-09-28 08:43:45 +00:00
2007-07-03 14:26:43 +00:00
2007-09-28 08:43:45 +00:00
2008-01-09 12:29:08 +00:00
2007-12-31 11:01:54 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-12 08:37:09 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-12 11:32:31 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-12 19:11:55 +00:00
2008-01-25 21:06:11 +00:00
2008-01-11 09:07:04 +00:00
2008-03-12 08:37:09 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-01-11 09:07:04 +00:00
2007-07-03 14:26:43 +00:00
2007-09-28 08:43:45 +00:00
2007-11-19 02:19:39 +00:00
2008-02-27 17:06:06 +00:00
2007-09-28 08:43:45 +00:00
2007-09-28 08:43:45 +00:00
2007-09-28 08:43:45 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-02 22:15:39 +00:00
2007-07-03 14:26:43 +00:00
2008-02-12 11:32:31 +00:00
2007-09-28 08:43:45 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-12 11:32:31 +00:00
2007-07-03 14:26:43 +00:00
2008-03-11 23:23:23 +00:00
2008-01-28 05:59:24 +00:00
2007-09-26 13:45:32 +00:00
2008-01-11 09:07:04 +00:00
2007-07-03 14:26:43 +00:00
2007-09-26 13:45:32 +00:00
2008-03-11 23:23:23 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2008-03-12 08:37:09 +00:00
2007-07-03 14:26:43 +00:00
2008-02-27 17:06:06 +00:00
2007-09-28 08:43:45 +00:00
2008-03-11 23:23:23 +00:00
2008-01-15 07:25:49 +00:00
2008-02-12 11:32:31 +00:00
2008-03-11 23:23:23 +00:00
2008-02-15 03:35:53 +00:00
2008-02-12 11:32:31 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-12 08:37:09 +00:00
2008-01-09 09:36:11 +00:00
2008-03-12 08:37:09 +00:00
2007-07-03 14:26:43 +00:00
2007-12-31 11:29:31 +00:00
2008-02-20 17:42:36 +00:00
2007-11-09 10:20:17 +00:00
2007-11-08 13:57:44 +00:00
2008-03-12 08:37:09 +00:00
2008-03-12 08:37:09 +00:00
2007-08-04 16:31:00 +00:00
2008-03-12 08:37:09 +00:00
2008-02-27 17:06:06 +00:00
2007-12-31 19:23:07 +00:00
2008-02-27 17:06:06 +00:00
2008-02-27 17:06:06 +00:00
2008-02-12 11:32:31 +00:00
2007-07-03 14:26:43 +00:00
2008-02-27 17:06:06 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-01-21 04:56:47 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-09-19 12:08:34 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-09-11 16:07:50 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-20 17:42:36 +00:00
2008-02-20 17:42:36 +00:00
2008-02-20 17:42:36 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-01-21 03:48:10 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 15:20:26 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-20 17:42:36 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 15:20:26 +00:00
2008-02-14 15:20:26 +00:00
2007-07-03 14:26:43 +00:00
2007-11-05 02:13:46 +00:00
2007-07-03 14:26:43 +00:00
2007-07-26 11:13:59 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-11-15 05:20:30 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-11-04 23:49:09 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-11-09 08:35:29 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 15:20:26 +00:00
2007-11-13 20:17:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-20 15:17:56 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 10:35:46 +00:00
2008-02-16 23:00:12 +00:00
2007-12-29 01:36:40 +00:00
2007-09-21 07:58:03 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-11 13:52:02 +00:00
2007-07-03 14:26:43 +00:00
2008-02-20 17:42:36 +00:00
2008-02-15 03:35:53 +00:00
2007-09-21 07:58:03 +00:00
2007-07-03 14:26:43 +00:00
2008-02-14 15:20:26 +00:00
2007-07-26 18:18:07 +00:00
2007-07-03 14:26:43 +00:00
2007-07-15 06:33:34 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-11 23:00:05 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-02-20 17:42:36 +00:00
2008-02-20 17:42:36 +00:00
2008-02-20 17:42:36 +00:00
2007-07-03 14:26:43 +00:00
2008-02-04 19:43:51 +00:00
2007-07-03 14:26:43 +00:00
2008-02-15 03:35:53 +00:00
2007-07-03 14:26:43 +00:00
2007-07-03 14:26:43 +00:00
2008-03-03 23:23:41 +00:00
2007-07-03 14:26:43 +00:00