binutils-gdb/ld/testsuite/ld-mmix/b-fixo2.d
Alan Modra 5f60280291 mmix-mmo set SEC_DATA for .data section
With the bfd_decode_symclass change, ld SIZEOF test fails due to
data_end being reported as type '?'.

bfd/
	PR 24511
	* mmo.c (mmo_scan): Set SEC_DATA for .data.
ld/
	PR 24511
	* testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
	* testsuite/ld-mmix/sec-2.d: Likewise.
	* testsuite/ld-mmix/sec-3.d: Likewise.
	* testsuite/ld-mmix/sec-4.d: Likewise.
	* testsuite/ld-mmix/spec802.d: Likewise.
	* testsuite/ld-mmix/spec803.d: Likewise.
	* testsuite/ld-mmix/spec804.d: Likewise.
	* testsuite/ld-mmix/spec805.d: Likewise.
	* testsuite/ld-mmix/spec806.d: Likewise.
	* testsuite/ld-mmix/spec807.d: Likewise.
	* testsuite/ld-mmix/spec808.d: Likewise.
2020-02-28 08:19:42 +10:30

28 lines
800 B
Makefile

#source: b-twoinsn.s
#source: b-fixo2.s
#source: b-post1.s
#source: b-goodmain.s
#ld: --oformat binary
#objcopy_linked_file:
#objdump: -sht
# Note that we "optimize" out the high tetrabyte of 0 written to
# 2068098510aa5560, hence only the low part is left.
.*: file format mmo
Sections:
Idx Name Size VMA LMA File off Algn
0 \.text 0+8 0+ 0+ 0+ 2\*\*2
CONTENTS, ALLOC, LOAD, CODE
1 \.data 0+4 2068098510aa5564 2068098510aa5564 0+ 2\*\*2
CONTENTS, ALLOC, LOAD, DATA
SYMBOL TABLE:
0+4 g \.text Main
0+4 g \.text a
Contents of section \.text:
0000 e3fd0001 e3fd0004 .*
Contents of section \.data:
2068098510aa5564 00000008 .*