binutils-gdb/ld/testsuite/ld-avr
Alan Modra 660df28acf Prefer object over notype symbols when disassembling
Changing objdump disassembly output like this always requires some
testsuite changes, with the avr and x64_64 changes simply due to
picking up better symbols, the whole point of the patch.

The mips changes are due to mips-sgi-irix changing STT_NOTYPE symbols
to STT_OBJECT, which objdump now chooses in preference to script
symbols.  The problem is that objdump looks at the first symbol in the
section being disassembled, and if object type, just dumps out bytes
rather than disassembling.  This results in new failures:

FAIL: JAL overflow 2
FAIL: undefined weak symbol overflow
FAIL: undefined weak symbol overflow (n32)
FAIL: undefined weak symbol overflow (n64)

So for mips-sgi-irix function symbols really do need to be function
type.  I fixed a few more than just the required minimum to avoid the
above test fails.

binutils/
	* objdump.c (compare_section): New static var.
	(compare_symbols): Sort by current section only.  Don't access
	symbol name out of bounds when checking for file symbols.
	Sort section symbols and object symbols.
	(find_symbol_for_address): Remove bogus debugging and section
	symbol test.
	(disassemble_data): Move symbol sort from here..
	(disassemble_section): ..to here.  Set compare_section.
ld/
	* testsuite/ld-avr/lds-mega.d: Adjust symbols to suit objdump change.
	* testsuite/ld-avr/lds-tiny.d: Likewise.
	* testsuite/ld-x86-64/load2.d: Likewise.
	* testsuite/ld-mips-elf/compact-eh1.s: Give function symbols
	function type.
	* testsuite/ld-mips-elf/compact-eh1a.s: Likewise.
	* testsuite/ld-mips-elf/compact-eh1b.s: Likewise.
	* testsuite/ld-mips-elf/compact-eh2.s: Likewise.
	* testsuite/ld-mips-elf/compact-eh3.s: Likewise.
	* testsuite/ld-mips-elf/compact-eh3a.s: Likewise.
	* testsuite/ld-mips-elf/eh-frame5.s: Likewise.
	* testsuite/ld-mips-elf/ehdr_start-new.s: Likewise.
	* testsuite/ld-mips-elf/ehdr_start-o32.s: Likewise.
	* testsuite/ld-mips-elf/emit-relocs-1a.s: Likewise.
	* testsuite/ld-mips-elf/jaloverflow-2.s: Likewise.
	* testsuite/ld-mips-elf/jaloverflow.s: Likewise.
	* testsuite/ld-mips-elf/mips16-call-global-1.s: Likewise.
	* testsuite/ld-mips-elf/mips16-intermix-1.s: Likewise.
	* testsuite/ld-mips-elf/mips16-pic-1b.s: Likewise.
	* testsuite/ld-mips-elf/mips16-pic-4c.s: Likewise.
	* testsuite/ld-mips-elf/no-shared-1-n64.s: Likewise.
	* testsuite/ld-mips-elf/no-shared-1-o32.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-1b.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-2a.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-3b.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-4b.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-5a.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s: Likewise.
	* testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s: Likewise.
	* testsuite/ld-mips-elf/pie.s: Likewise.
	* testsuite/ld-mips-elf/relax-jalr.s: Likewise.
	* testsuite/ld-mips-elf/reloc-1a.s: Likewise.
	* testsuite/ld-mips-elf/reloc-2a.s: Likewise.
	* testsuite/ld-mips-elf/reloc-4.s: Likewise.
	* testsuite/ld-mips-elf/reloc-5.s: Likewise.
	* testsuite/ld-mips-elf/reloc-6b.s: Likewise.
	* testsuite/ld-mips-elf/textrel-1.s: Likewise.
	* testsuite/ld-mips-elf/undefweak-overflow.s: Likewise.
	* testsuite/ld-mips-elf/undefweak-overflow.d: Adjust.
2019-12-17 20:43:00 +10:30
..
avr-prop-1.d AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-1.s AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-2.d AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-2.s AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-3.d AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-3.s AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-4.d AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-4.s AVR/ld: Use .avr.prop data during linker relaxation. 2015-02-25 23:19:11 +00:00
avr-prop-5.d Fix PR 20221 - adjust syms and relocs only if relax shrunk section. 2016-06-09 19:17:43 +03:00
avr-prop-5.s Fix PR 20221 - adjust syms and relocs only if relax shrunk section. 2016-06-09 19:17:43 +03:00
avr-prop-6.d Fix PR ld/20254 2016-06-15 12:47:46 +05:30
avr-prop-6.s Fix PR ld/20254 2016-06-15 12:47:46 +05:30
avr-prop-7.d Fix PR ld/20545 - relaxation bugs in avr backend 2016-09-06 12:28:37 +05:30
avr-prop-7.s Fix PR ld/20545 - relaxation bugs in avr backend 2016-09-06 12:28:37 +05:30
avr-prop-8.d Fix PR ld/20545 - relaxation bugs in avr backend 2016-09-06 12:28:37 +05:30
avr-prop-8.s Fix PR ld/20545 - relaxation bugs in avr backend 2016-09-06 12:28:37 +05:30
avr.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
gc-section-debugline.d Fix more fallout from 17f6ade235 2018-09-21 09:55:38 +09:30
lds-mega.d Prefer object over notype symbols when disassembling 2019-12-17 20:43:00 +10:30
lds-mega.s Print symbol names in comments for LDS/STS disassembly. 2016-06-09 19:00:57 +03:00
lds-tiny.d Prefer object over notype symbols when disassembling 2019-12-17 20:43:00 +10:30
lds-tiny.s Print symbol names in comments for LDS/STS disassembly. 2016-06-09 19:00:57 +03:00
norelax_diff.d
per-function-debugline.s Define DIFF_EXPR_OK for avr target to allow PC relative difference relocation. 2015-07-08 21:41:52 +03:00
pr13402.d Fix PR 13402 2017-06-27 14:47:02 +05:30
pr13402.s Fix PR 13402 2017-06-27 14:47:02 +05:30
pr20789.d Fix PR20789 - relaxation with negative valued diff relocs 2016-11-16 16:11:46 +05:30
pr20789.s Fix PR20789 - relaxation with negative valued diff relocs 2016-11-16 16:11:46 +05:30
pr21404-1.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-1.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-2.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-2.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-3.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-3.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-4.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-4.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-5.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-5.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-6.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-6.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-7.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-7.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-8.d Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
pr21404-8.s Fix PR21404 - assertion fail when calculating symbol size 2017-05-04 10:34:29 +05:30
region_overflow.d This patch modifies the AVR linker script templates to use __<name>_REGION_LENGTH__ symbols, if provided, for setting memory region lengths, defaulting to the current constant values otherwise. 2015-02-24 11:26:28 +00:00
region_overflow.s This patch modifies the AVR linker script templates to use __<name>_REGION_LENGTH__ symbols, if provided, for setting memory region lengths, defaulting to the current constant values otherwise. 2015-02-24 11:26:28 +00:00
relax-02.d When relaxing, update size of symbols. 2014-11-03 20:34:13 +00:00
relax-02.s
relax-03.d When relaxing, update size of symbols. 2014-11-03 20:34:13 +00:00
relax-03.s
relax-elf-flags-01.d AVR/ld: Propagate link-relax elf header flag correctly. 2014-12-23 15:45:11 +00:00
relax-elf-flags-02.d AVR: Assembler now prepares for linker relaxation by default. 2014-12-24 21:27:43 +00:00
relax-elf-flags-03.d AVR: Assembler now prepares for linker relaxation by default. 2014-12-24 21:27:43 +00:00
relax-elf-flags-04.d AVR: Assembler now prepares for linker relaxation by default. 2014-12-24 21:27:43 +00:00
relax-elf-flags-05.d AVR: Assembler now prepares for linker relaxation by default. 2014-12-24 21:27:43 +00:00
relax-elf-flags-06.d AVR: Assembler now prepares for linker relaxation by default. 2014-12-24 21:27:43 +00:00
relax-elf-flags-07.d AVR/ld: Propagate link-relax elf header flag correctly. 2014-12-23 15:45:11 +00:00
relax-elf-flags-08.d AVR/ld: Propagate link-relax elf header flag correctly. 2014-12-23 15:45:11 +00:00
relax-elf-flags-a.s AVR/ld: Propagate link-relax elf header flag correctly. 2014-12-23 15:45:11 +00:00
relax-elf-flags-b.s AVR/ld: Propagate link-relax elf header flag correctly. 2014-12-23 15:45:11 +00:00
relax-insn-at-range-boundary.d Fix PR 24571 - Relaxation does not shorten jmp or call to target at pc-relative range boundary 2019-05-21 12:48:06 +05:30
relax-insn-at-range-boundary.s Fix PR 24571 - Relaxation does not shorten jmp or call to target at pc-relative range boundary 2019-05-21 12:48:06 +05:30
relax.s
relax_diff.d
wraparound-range-boundary.d Fix PR 24564 - link fails for some rcalls/rjmps with wraparound 2019-05-21 12:34:22 +05:30
wraparound-range-boundary.s Fix PR 24564 - link fails for some rcalls/rjmps with wraparound 2019-05-21 12:34:22 +05:30