Clang's integrated assembler supports multiple section with the same name: .section .text,"ax",@progbits,unique,1 nop .section .text,"ax",@progbits,unique,2 nop "unique,N" assigns the number, N, as the section ID, to a section. The valid values of the section ID are between 0 and 4294967295. It can be used to distinguish different sections with the same section name. This is useful with -fno-unique-section-names -ffunction-sections. -ffunction-sections by default generates .text.foo, .text.bar, etc. Using the same string can save lots of space in .strtab. This patch adds section_id to bfd_section and reuses the linker internal bit in BFD section flags, SEC_LINKER_CREATED, for assmebler internal use to mark valid section_id. It also updates objdump to compare section pointers if 2 sections comes from the same file since 2 different sections can have the same section name. bfd/ PR gas/25380 * bfd-in2.h: Regenerated. * ecoff.c (bfd_debug_section): Add section_id. * section.c (bfd_section): Add section_id. (SEC_ASSEMBLER_SECTION_ID): New. (BFD_FAKE_SECTION): Add section_id. binutils/ PR gas/25380 * objdump.c (sym_ok): Return FALSE if 2 sections are in the same file with different section pointers. gas/ PR gas/25380 * config/obj-elf.c (section_match): Removed. (get_section): Also match SEC_ASSEMBLER_SECTION_ID and section_id. (obj_elf_change_section): Replace info and group_name arguments with match_p. Also update the section ID and flags from match_p. (obj_elf_section): Handle "unique,N". Update call to obj_elf_change_section. * config/obj-elf.h (elf_section_match): New. (obj_elf_change_section): Updated. * config/tc-arm.c (start_unwind_section): Update call to obj_elf_change_section. * config/tc-ia64.c (obj_elf_vms_common): Likewise. * config/tc-microblaze.c (microblaze_s_data): Likewise. (microblaze_s_sdata): Likewise. (microblaze_s_rdata): Likewise. (microblaze_s_bss): Likewise. * config/tc-mips.c (s_change_section): Likewise. * config/tc-msp430.c (msp430_profiler): Likewise. * config/tc-rx.c (parse_rx_section): Likewise. * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise. * doc/as.texi: Document "unique,N" in .section directive. * testsuite/gas/elf/elf.exp: Run "unique,N" tests. * testsuite/gas/elf/section15.d: New file. * testsuite/gas/elf/section15.s: Likewise. * testsuite/gas/elf/section16.s: Likewise. * testsuite/gas/elf/section16a.d: Likewise. * testsuite/gas/elf/section16b.d: Likewise. * testsuite/gas/elf/section17.d: Likewise. * testsuite/gas/elf/section17.l: Likewise. * testsuite/gas/elf/section17.s: Likewise. * testsuite/gas/i386/unique.d: Likewise. * testsuite/gas/i386/unique.s: Likewise. * testsuite/gas/i386/x86-64-unique.d: Likewise. * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique. ld/ PR gas/25380 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section directives. * testsuite/ld-i386/tls-gd1.S: Likewise. * testsuite/ld-x86-64/pr21481b.S: Likewise.
175 lines
5.4 KiB
Plaintext
175 lines
5.4 KiB
Plaintext
2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR gas/25380
|
||
* objdump.c (sym_ok): Return FALSE if 2 sections are in the
|
||
same file with different section pointers.
|
||
|
||
2020-02-01 Nick Clifton <nickc@redhat.com>
|
||
|
||
* README-how-to-make-a-release: Update with more details on the
|
||
release making process.
|
||
|
||
2020-01-31 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/sv.po: Updated Swedish translation.
|
||
|
||
2020-01-28 Nick Clifton <nickc@redhat.com>
|
||
|
||
* readelf.c (get_build_id): Simplify warning message about corrupt
|
||
notes encountered whilst scanning for the build-id.
|
||
|
||
2020-01-27 Roland McGrath <mcgrathr@google.com>
|
||
|
||
* objcopy.c (compare_gnu_build_notes): Fix comparison results
|
||
for overlapping ranges so that (A == B) == (B == A) holds.
|
||
|
||
2020-01-27 Alan Modra <amodra@gmail.com>
|
||
|
||
* testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
|
||
case statement with switch statement.
|
||
|
||
2020-01-24 Nick Clifton <nickc@redhat.com>
|
||
|
||
* readelf.c (get_build_id): Fix warning messages about corrupt
|
||
notes.
|
||
|
||
2020-01-23 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/fr.po: Updated French translation.
|
||
|
||
2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
|
||
|
||
PR 25417
|
||
* readelf.c (get_alpha_symbol_other): Fix error message typo.
|
||
|
||
2020-01-20 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/pt.po: Updated Portuguese translation.
|
||
* po/uk.po: Updated Ukranian translation.
|
||
|
||
2020-01-18 Nick Clifton <nickc@redhat.com>
|
||
|
||
* README-how-to-make-a-release: Update notes on how to cut a
|
||
branch for a release.
|
||
|
||
2020-01-18 Nick Clifton <nickc@redhat.com>
|
||
|
||
* configure: Regenerate.
|
||
* po/binutils.pot: Regenerate.
|
||
|
||
2020-01-18 Nick Clifton <nickc@redhat.com>
|
||
|
||
Binutils 2.34 branch created.
|
||
|
||
2020-01-17 Thomas Troeger <tstroege@gmx.de>
|
||
|
||
* objdump.c (jump_info_visualize_address): Discard jumps that are
|
||
no longer needed.
|
||
(disassemble_bytes): Only compute the maximum level if jumps were
|
||
detected.
|
||
|
||
2020-01-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
* objdump.c (disassemble_bytes): Remove C99-ism.
|
||
* testsuite/binutils-all/debuginfod.exp: New tests.
|
||
|
||
2020-01-13 Thomas Troeger <tstroege@gmx.de>
|
||
|
||
* objdump.c (visualize_jumps, color_output, extended_color_output)
|
||
(detected_jumps): New variables.
|
||
(usage): Add the new jump visualization options.
|
||
(option_values): Add new option value.
|
||
(long_options): Add the new option.
|
||
(jump_info_new, jump_info_free): New functions.
|
||
(jump_info_min_address, jump_info_max_address): Likewise.
|
||
(jump_info_end_address, jump_info_is_start_address): Likewise.
|
||
(jump_info_is_end_address, jump_info_size): Likewise.
|
||
(jump_info_unlink, jump_info_insert): Likewise.
|
||
(jump_info_add_front, jump_info_move_linked): Likewise.
|
||
(jump_info_intersect, jump_info_merge): Likewise.
|
||
(jump_info_sort, jump_info_visualize_address): Likewise.
|
||
(disassemble_jumps): New function - used to locate jumps.
|
||
(disassemble_bytes): Add ascii art generation.
|
||
(disassemble_section): Add scan to locate jumps.
|
||
(main): Parse the new visualization option.
|
||
* doc/binutils.texi: Document the new feature.
|
||
* NEWS: Mention the new feature.
|
||
|
||
2020-01-13 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 25360
|
||
PR 25361
|
||
* dwarf.c (display_debug_frames): Move fde_fc earlier. Free
|
||
fde_fc col_type and col_offset.
|
||
* readelf.c (apply_relocations): Move symsec check earlier.
|
||
(free_debug_section): Free reloc_info.
|
||
(process_notes_at): Free pnotes on error path.
|
||
(process_object): Free dump_sects here..
|
||
(process_archive): ..not here.
|
||
|
||
2020-01-13 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 25362
|
||
* nm.c (display_rel_file): Free dyn_syms.
|
||
|
||
2020-01-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 25220
|
||
* objcopy.c (empty_name): New variable.
|
||
(need_sym_before): Prevent an attempt to free a static variable.
|
||
(filter_symbols): Avoid strcmp test by checking for pointer
|
||
equality.
|
||
|
||
2020-01-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/zh_TW.po: Updated Traditional Chinese translation.
|
||
|
||
2020-01-09 Aaron Merey <amerey@redhat.com>
|
||
|
||
* Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
|
||
* Makefile.in: Regenerate.
|
||
* NEWS: Update.
|
||
* config.in: Regenerate.
|
||
* configure: Regenerate.
|
||
* configure.ac: Call AC_DEBUGINFOD.
|
||
* doc/Makefile.in: Regenerate.
|
||
* doc/binutils.texi: Add section on using binutils
|
||
with debuginfod.
|
||
* dwarf.c (debuginfod_fetch_separate_debug_info): New function.
|
||
Query debuginfod servers for the target debug file.
|
||
(load_separate_debug_info): Call
|
||
debuginfod_fetch_separate_debug_info if configured with
|
||
debuginfod.
|
||
(load_separate_debug_files): Add file argument to
|
||
load_separate_debug_info calls.
|
||
* dwarf.h (get_build_id): Add declaration.
|
||
* objdump.c (get_build_id): New function. Get build-id of file.
|
||
* readelf.c (get_build_id): Likewise.
|
||
* testsuite/binutils-all/debuginfod.exp: New tests.
|
||
* testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
|
||
section.
|
||
|
||
2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
|
||
|
||
* readelf.c: Add support for new Z*) relocations and machine
|
||
types.
|
||
|
||
2020-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2019
|
||
|
||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|