binutils-gdb/binutils/testsuite/binutils-all
Nick Clifton 6f156d7a4a Add support for v3 binary annotation notes.
I am checking in the attached patch which updates the binutils
  support for version 3 binary annotation notes.  (Version 3 adds
  an end address to the ranges covered by the notes, so that it
  is possible to detect gaps in the coverage).

  This patch also stops the note merging feature of objcopy from
  executing if the notes have relocations against them.  This makes the
  code simpler, and prevents the problems with architectures which have
  unusual relocation management issues.

	* objcopy.c (objcopy_internal_note): New structure.
	(gap_exists): New function.
	(is_open_note): New function.
	(is_func_note): New function.
	(is_64bit): New function.
	(merge_gnu_build_notes): Handle v3 notes.  Do not merge
	if there are relocations against the notes.
	* readelf.c (get_note_type): Use short names for build attribute
	notes.
	(print_symbol_for_build_attribute): Rename to
	get_symbol_for_build_attribute.  Returns the found symbol rather
	than printing it.
	(print_gnu_build_attribute_description): Maintain address ranges
	for function notes as well as global notes.  Handle v3 notes.
	(print_gnu_build_attribute_name): Use more space for printing the
	name in wide mode.
	* testsuite/binutils-all/note-2-32.s: Use .dc.l instead of .word.
	Eliminate symbol references in order to remove the need for
	relocations.
	* testsuite/binutils-all/note-2-64.s: Likewise.
	* testsuite/binutils-all/note-3-32.s: Add a size to the note_1
	symbol.
	* testsuite/binutils-all/note-3-64.s: Likewise.
	* testsuite/binutils-all/mips/mips-note-2r-n32.d: Update expected
	output.
	* testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
	* testsuite/binutils-all/note-2-32.d: Likewise.
	* testsuite/binutils-all/note-2-64.d: Likewise.
	* testsuite/binutils-all/note-3-32.d: Likewise.
	* testsuite/binutils-all/note-3-64.d: Likewise.
	* testsuite/binutils-all/note-4-64.s: New test.  Checks v3 notes.
	* testsuite/binutils-all/note-4-32.s: New test.
	* testsuite/binutils-all/note-4-64.d: New test result file.
	* testsuite/binutils-all/note-4-32.d: New test result file.
2018-01-03 10:30:07 +00:00
..
aarch64 Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
arc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
arm Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
bfin Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
hppa Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
i386 Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
m68k Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mips Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
vax Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
wasm32 Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
windres Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
x86-64 Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
add-empty-section.d
add-section.d
add-symbol.d
alias-2.def
alias.def
ar.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
bintest.s
common-1.s
common-1a.d
common-1b.d
common-1c.d
common-1d.d
common-1e.d
common-1f.d
common-2.s
common-2a.d
common-2b.d
common-2c.d
common-2d.d
common-2e.d
common-2f.d
compress.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
copy-1.d
copy-1.s
copy-2.d
copy-3.d
copy-4.d
copytest.s
data-sections.s
debug_str.d
debug_str.s
debuglink.s Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dlltool.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dumptest.s
dw2-1.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dw2-1.W readelf ngettext fixes 2017-11-07 17:01:16 +10:30
dw2-2.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dw2-3.rS
dw2-3.rt
dw2-3.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dw2-3.W readelf ngettext fixes 2017-11-07 17:01:16 +10:30
dw2-3gabi.W readelf ngettext fixes 2017-11-07 17:01:16 +10:30
dw2-compressed.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dw2-decodedline-1.S
dw2-decodedline.S
dw2-empty.S
dw2-ranges.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dw2-ranges.W
dw5.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dw5.W Add support to readelf and objdump for following links to separate debug information files. 2017-11-15 11:34:03 +00:00
dwarf-attributes.S Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dwarf-attributes.W Display more information when decoding DW_AT_endianity, DW_AT_decimal_sign, DW_AT_defaulted and DW_AT_discr_list DWARF attributes. 2017-10-11 12:02:51 +01:00
dwo.s Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
elfedit-1.d
elfedit-2.d
elfedit-3.d
elfedit-4.d
elfedit-5.d
elfedit.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
empty
empty-file
empty.s
exclude-1.s
exclude-1a.d
exclude-1b.d
fastcall.def
group-2.s
group-3.s
group-4.s
group-5.d
group-5.s
group-6.d
group-6.s
group.s
libdw2-compressed.out
libdw2-compressedgabi.out readelf ngettext fixes 2017-11-07 17:01:16 +10:30
libdw2.out
link-order.s
linkdebug.s Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
localize-hidden-1.d
localize-hidden-1.s
localize-hidden-2.d
localize-hidden-2.s
locview-1.s LVU: dump loclists with locviews 2017-09-22 17:05:51 -03:00
locview-2.s LVU: dump loclists with locviews 2017-09-22 17:05:51 -03:00
mbind1.s Support ELF SHF_GNU_MBIND and PT_GNU_MBIND_XXX 2017-04-04 09:06:04 -07:00
needed-by-reloc.s
nm-1.s
nm-elf-1.s
nm-ver.s Add the ability for nm to display symbol version information. 2016-11-11 11:49:45 +00:00
nm.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
note-1.d
note-2-32.d Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-2-32.s Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-2-64.d Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-2-64.s Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-3-32.d Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-3-32.s Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-3-64.d Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-3-64.s Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-3.32.s Add test of V2 GNU build attribute notes. 2017-08-17 14:51:31 +01:00
note-4-32.d Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-4-32.s Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-4-64.d Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
note-4-64.s Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
objcopy.exp Add support for v3 binary annotation notes. 2018-01-03 10:30:07 +00:00
objdump.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
objdump.s
objdump.W readelf ngettext fixes 2017-11-07 17:01:16 +10:30
objdump.Wk Add support to readelf and objdump for following links to separate debug information files. 2017-11-15 11:34:03 +00:00
objdump.WK2 Add support to readelf and objdump for following links to separate debug information files. 2017-11-15 11:34:03 +00:00
objdump.WL Add support to readelf and objdump for following links to separate debug information files. 2017-11-15 11:34:03 +00:00
only-section-01.d
pr18374.s
pr19020.in
pr19020a.d
pr19020b.d
pr19547.c
readelf.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
readelf.h
readelf.k Add support to readelf and objdump for following links to separate debug information files. 2017-11-15 11:34:03 +00:00
readelf.k2 Add ability to follow dwo links to readelf/objdump. 2017-11-21 13:12:04 +00:00
readelf.locview-1 LVU: dump loclists with locviews 2017-09-22 17:05:51 -03:00
readelf.locview-2 LVU: dump loclists with locviews 2017-09-22 17:05:51 -03:00
readelf.n
readelf.pr18374
readelf.r readelf ngettext fixes 2017-11-07 17:01:16 +10:30
readelf.r-64 readelf ngettext fixes 2017-11-07 17:01:16 +10:30
readelf.s
readelf.s-64
readelf.ss
readelf.ss-64
readelf.ss-mips
readelf.ss-tmips
readelf.wa
readelf.z
remove-relocs-01.d
remove-relocs-01.s
remove-relocs-02.d
remove-relocs-03.d
remove-relocs-04.d
remove-relocs-05.d
remove-relocs-06.d
remove-section-01.d
size.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
strip-1.d
strip-2.d
strip-3.d [ARC] Object attributes. 2017-05-10 14:42:22 +02:00
strip-4.d
strip-5.d
strip-6.d
strip-7.d
strip-8.d
strip-9.d
strip-10.d
strip-11.d
strip-12.d
strip-12.s
symbols-1.d
symbols-2.d
symbols-3.d
symbols-4.d
symbols.s
testprog.c
testranges-ia64.d
testranges-ia64.s
testranges.d
testranges.s
unique.s
unknown.s
update-1.s
update-2.s
update-3.s
update-4.s
update-section.exp Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
version.def
version.s
z.s