binutils-gdb/ld/testsuite/ld-m68k
Pat Bernardi 85f7484a3a m68k: tag floating-point ABI used
This patch adds GNU attribute support to m68k and utilises it to tag the
floating-point calling convention used (hard-float or soft-float). It enables
the linker to ensure linked objects use a consistent floating-point ABI and
allows tools like GDB to infer the ABI used from the ELF file. It is based on
similar work done for PowerPC.

bfd/
	* elf32-m68k.c (m68k_elf_merge_obj_attributes): New function.
	(elf32_m68k_merge_private_bfd_data): Merge GNU attributes.
binutils/
	* readelf.c (display_m68k_gnu_attribute): New function.
	(process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
gas/
	* config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
	(md_pseudo_table): Handle "gnu_attribute".
	* doc/as.texi: Document GNU attribute for M68K.
include/
	* elf/m68k.h: Add enum for GNU object attribute with floating point
	tag name and values.
ld/
	* testsuite/ld-m68k/attr-gnu-4-0.s: New file.
	* testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
	* testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
	* testsuite/ld-m68k/m68k.exp: Run the new tests.
2020-06-26 14:42:19 +09:30
..
attr-gnu-4-00.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-0.s m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-01.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-1.s m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-02.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-2.s m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-10.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-11.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-12.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-20.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-21.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
attr-gnu-4-22.d m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
got-1.d readelf ngettext fixes 2017-11-07 17:01:16 +10:30
got-1.s * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing 2008-06-29 12:56:41 +00:00
got-multigot-12-13-14-34-35-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-multigot-14-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-multigot-15-er.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-negative-12-13-14-34-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-negative-12-13-14-35-er.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-negative-14-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-negative-15-er.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-single-12-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-single-13-er.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-xgot-12-13-14-15-34-35-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
got-xgot-15-ok.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
isaa-mac.d
isaa-mac.s
isaa-nodiv.s
isaa.d
isaa.s
isaaplus.d
isaaplus.s
isab-float.d
isab-float.s
isab-nousp.s
isab.d
isab.s
m68k-got.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
m68k.exp m68k: tag floating-point ABI used 2020-06-26 14:42:19 +09:30
merge-error-1a.d
merge-error-1a.s
merge-error-1b.d
merge-error-1b.s
merge-error-1c.d
merge-error-1d.d
merge-error-1e.d
merge-ok-1a.d
merge-ok-1b.d
merge-ok-1c.d
merge.ld
plt1-68020.d Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT. 2016-10-11 13:50:10 +01:00
plt1-cpu32.d Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT. 2016-10-11 13:50:10 +01:00
plt1-empty.s
plt1-isab.d Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT. 2016-10-11 13:50:10 +01:00
plt1-isac.d Enhance objdump so that it will use .got, .plt and .plt.got section symbols when disassembling, and it will use dynamic relocs to interpret entries in the PLT and GOT. 2016-10-11 13:50:10 +01:00
plt1.ld
plt1.s
tls-def-1.d Define various symbols conditionally in shared libraries 2018-06-08 20:17:34 +09:30
tls-def-1.s * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate non_got_ref 2009-08-26 13:35:37 +00:00
tls-gd-1.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tls-gd-1.d2 Define various symbols conditionally in shared libraries 2018-06-08 20:17:34 +09:30
tls-gd-1.d3 * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate non_got_ref 2009-08-26 13:35:37 +00:00
tls-gd-1.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-gd-2.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tls-gd-2.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-gd-3.d * ld-m68k/tls-gd-ie-1.d: Stabilize test. 2011-04-15 09:58:23 +00:00
tls-gd-3.s * ld-m68k/tls-gd-ie-1.d: Stabilize test. 2011-04-15 09:58:23 +00:00
tls-gd-ie-1.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tls-gd-ie-1.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-ie-1.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tls-ie-1.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-ld-1.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tls-ld-1.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-ld-2.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
tls-ld-2.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-le-1.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00
tls-main-1.d * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate non_got_ref 2009-08-26 13:35:37 +00:00
tls-main-1.s * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate non_got_ref 2009-08-26 13:35:37 +00:00
tls-no-1.s new files accidentally omitted from previous delta 2009-02-03 14:48:32 +00:00