binutils-gdb/ld/testsuite/ld-scripts
Alan Modra 27cdfa03b5 m32c padding with nops
m32c_md_end attempted to pad out a code section with nops, but this
was just plain wrong in many ways:
- The padding didn't happen at all if the last section emitted wasn't
  a code section.
- The padding went to the wrong place if subsections were used, and
  the last subseg used wasn't the highest numbered subseg.
- Padding wasn't added to all code sections.
- If the last section was empty, it was padded to 4 bytes.
- The padding didn't go to a 4-byte alignment boundary, instead it
  effectively made the last instruction 4 bytes in size.
- The padding didn't take into account that code sections may have
  contents other than machine instructions.

So, rip it out and handle nop padding properly, also fixing .align
.balign/.p2align in the middle of code.

gas/
	* config/tc-m32c.c (insn_size): Delete static var.
	(md_begin): Don't set it.
	(m32c_md_end): Delete.
	(md_assemble): Add insn_size auto var.
	* config/tc-m32c.h (md_end): Don't define.
	(m32c_md_end): Delete.
	(NOP_OPCODE, HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): Define.
	* testsuite/gas/all/align.d: Remove m32c from notarget list.
	* testsuite/gas/all/incbin.d: Likewise.
	* testsuite/gas/elf/dwarf2-11.d: Likewise.
	* testsuite/gas/macros/semi.d: Likewise.
	* testsuite/gas/all/gas.exp (do_comment): Similarly.
ld/
	* testsuite/ld-scripts/fill.d: Don't xfail m32c
	* testsuite/ld-scripts/fill16.d: Likewise.
2019-05-04 17:23:18 +09:30
..
align2.t
align2a.d
align2a.s
align2b.d
align2b.s
align2c.d
align2c.s
align3.d Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
align3.t Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
align4.d Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
align4.t Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
align5.d Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
align5.t Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
align-with-input.d
align-with-input.t
align.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
align.s
align.t
alignof.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
alignof.s
alignof.t
assert2.d
assert2.t
assert.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
assert.s
assert.t
assign-loc.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
assign-loc.t
cross1.c
cross1.t Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
cross2.c
cross2.t
cross3.c
cross3.t
cross4.c
cross4.t
cross5.t
cross6.t
cross7.t
crossref.exp Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
data.d
data.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
data.s
data.t
default-script1.d
default-script2.d
default-script3.d
default-script4.d
default-script.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
default-script.s
default-script.t
defined2.d
defined2.t
defined3.d
defined3.t
defined4.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
defined4.s
defined4.t
defined5.d
defined5.s
defined5.t
defined6.d A few hppa testcase tidies 2018-09-17 23:17:14 +09:30
defined6.s
defined6.t
defined.exp Add a testcase for PR ld/24008 2019-01-29 06:07:42 -08:00
defined.s
defined.t
dynamic-sections-1.s
dynamic-sections-2.s
dynamic-sections.d
dynamic-sections.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
dynamic-sections.t
empty-address-1.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
empty-address-1.s
empty-address-1.t
empty-address-2.s
empty-address-2a.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
empty-address-2a.t
empty-address-2b.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
empty-address-2b.t
empty-address-3.s
empty-address-3a.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
empty-address-3a.t
empty-address-3b.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
empty-address-3b.t
empty-address-3c.d
empty-address-3c.t
empty-address.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
empty-aligned.d
empty-aligned.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
empty-aligned.s
empty-aligned.t
empty-orphan.d
empty-orphan.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
empty-orphan.s
empty-orphan.t
exclude-file-1.d
exclude-file-1.map
exclude-file-1.t
exclude-file-2.d
exclude-file-2.map
exclude-file-2.t
exclude-file-3.d
exclude-file-3.map
exclude-file-3.t
exclude-file-4.d
exclude-file-4.map
exclude-file-4.t
exclude-file-5.d Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-5.map Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-5.t Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-6.d Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-6.map Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-6.t Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-7.d Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-7.map Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-7.t Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar. 2017-07-28 13:01:10 +01:00
exclude-file-a.s
exclude-file-b.s
exclude-file.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
expr1.d
expr1.s
expr1.t
expr2.d
expr2.s
expr2.t
expr.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
extern.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
extern.s
extern.t
fill16_0.s LD/testsuite: Add 2**4 section alignment FILL script statement test 2017-07-19 13:11:59 +01:00
fill16_1.s LD/testsuite: Add 2**4 section alignment FILL script statement test 2017-07-19 13:11:59 +01:00
fill16_2.s LD/testsuite: Add 2**4 section alignment FILL script statement test 2017-07-19 13:11:59 +01:00
fill16.d m32c padding with nops 2019-05-04 17:23:18 +09:30
fill_0.s
fill_1.s
fill_2.s
fill.d m32c padding with nops 2019-05-04 17:23:18 +09:30
fill.t
include-1.d
include-1.t
include-data.t
include-mem.t
include-ram.t
include-sections.t
include-subdata.t
include.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
include.s
log2.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
log2.s
log2.t
map-address.d
map-address.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
map-address.t
memory_sym.t
memory.t
overlay-size-map.d
overlay-size.d
overlay-size.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
overlay-size.s
overlay-size.t
phdrs2.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
phdrs2.s
phdrs2.t
phdrs3.d
phdrs3.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
phdrs3.t
phdrs3a.d
phdrs3a.t
phdrs.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
phdrs.s
phdrs.t
pr14962-2.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
pr14962-2.t
pr14962.d ld testsuite use of notarget 2018-07-10 23:58:29 +09:30
pr14962.t
pr14962a.s
pr14962b.s
pr18963.d
pr18963.t PR24511, nm should not mark symbols in .init_array as "t" 2019-05-04 16:57:33 +09:30
pr20302.d ns32k testsuite tidy 2019-04-16 19:59:55 +09:30
pr22267.d ld: Don't allow '~' as the first char in symbol name 2017-10-09 04:17:24 -07:00
pr22267.s ld: Don't allow '~' as the first char in symbol name 2017-10-09 04:17:24 -07:00
pr22267.t ld: Don't allow '~' as the first char in symbol name 2017-10-09 04:17:24 -07:00
pr23571.d Delay evaluation of alignment expressions in output sections 2018-08-26 22:45:59 +09:30
pr23571.t Delay evaluation of alignment expressions in output sections 2018-08-26 22:45:59 +09:30
pr24008.d Fix some ldscripts/pr24008 fails 2019-02-06 17:33:54 +10:30
pr24008.map Add a testcase for PR ld/24008 2019-01-29 06:07:42 -08:00
pr24008.s Add a testcase for PR ld/24008 2019-01-29 06:07:42 -08:00
pr24008.t Add a testcase for PR ld/24008 2019-01-29 06:07:42 -08:00
print-memory-usage-1.l
print-memory-usage-1.s
print-memory-usage-1.t
print-memory-usage-2.l
print-memory-usage-2.t
print-memory-usage-3.l
print-memory-usage-3.s
print-memory-usage-3.t
print-memory-usage.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
print-memory-usage.t x86: Add a GNU_PROPERTY_X86_ISA_1_USED note if needed 2018-07-20 09:19:00 -07:00
provide-1.d
provide-1.s
provide-1.t
provide-2.d
provide-2.s
provide-2.t
provide-3.d ld: Find and run some tests using a wildcard pattern 2018-01-11 17:35:34 +00:00
provide-3.s
provide-3.t
provide-4.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
provide-4.map ld: Find and run some tests using a wildcard pattern 2018-01-11 17:35:34 +00:00
provide-4.t
provide-5.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
provide-5.map ld: Find and run some tests using a wildcard pattern 2018-01-11 17:35:34 +00:00
provide-5.s
provide-5.t
provide-6.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
provide-6.t ld: Fix issue where PROVIDE overrides defined symbol 2018-01-11 17:35:35 +00:00
provide-7.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
provide-7.t ld: Fix issue where PROVIDE overrides defined symbol 2018-01-11 17:35:35 +00:00
provide-8.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
provide-8.t ld: Fix issue where PROVIDE overrides defined symbol 2018-01-11 17:35:35 +00:00
provide.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
region-alias-1.d
region-alias-1.t
region-alias-2.d
region-alias-2.t
region-alias-3.d
region-alias-3.t
region-alias-4.d
region-alias-4.t
rgn-at1.d
rgn-at1.t
rgn-at2.d
rgn-at2.t
rgn-at3.d
rgn-at3.t
rgn-at4.d
rgn-at4.t
rgn-at5.d [ARM] FDPIC: Update testsuite so that many tests pass with arm*-uclinuxfdpiceabi. 2018-04-25 21:13:14 +00:00
rgn-at5.s
rgn-at5.t
rgn-at6.d
rgn-at6.s
rgn-at6.t
rgn-at7.d
rgn-at7.t
rgn-at8.d
rgn-at8.t
rgn-at9.d
rgn-at9.t
rgn-at10.d
rgn-at10.s
rgn-at10.t
rgn-at11.d
rgn-at11.s
rgn-at11.t
rgn-at.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
rgn-at.s
rgn-over1.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over1.t
rgn-over2.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over2.t
rgn-over3.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over3.t
rgn-over4.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over4.t
rgn-over5.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over5.t
rgn-over6.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over6.t
rgn-over7.d elf: Report property change when merging properties 2018-12-07 08:30:43 -08:00
rgn-over7.t
rgn-over8-ok.d
rgn-over8.s
rgn-over8.t
rgn-over.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
rgn-over.s
sane1.d
sane1.t PR24511, nm should not mark symbols in .init_array as "t" 2019-05-04 16:57:33 +09:30
script.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
script.s
script.t
scriptm.t
section-flags-1.s
section-flags-1.t
section-flags-2.s
section-flags-2.t
section-flags.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
section-match-1.d ns32k testsuite tidy 2019-04-16 19:59:55 +09:30
section-match-1.s
section-match-1.t
section-match.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
segment-start.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
segment-start.ld LD: Always make a SEGMENT_START expression section-relative 2018-09-14 20:22:56 +01:00
segment-start.s LD: Always make a SEGMENT_START expression section-relative 2018-09-14 20:22:56 +01:00
size-1.d
size-1.s
size-1.t
size-2.d
size-2.s
size-2.t x86: Add a GNU_PROPERTY_X86_ISA_1_USED note if needed 2018-07-20 09:19:00 -07:00
size.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
sizeof.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
sizeof.s
sizeof.t
sort_b_a_a-1.d
sort_b_a_a-2.d
sort_b_a_a-3.d
sort_b_a_a.t
sort_b_a_n-1.d
sort_b_a_n-2.d
sort_b_a_n-3.d
sort_b_a_n.t
sort_b_a-1.d
sort_b_a-1.s
sort_b_a.d
sort_b_a.s
sort_b_a.t
sort_b_n_a-1.d
sort_b_n_a-2.d
sort_b_n_a-3.d
sort_b_n_a.t
sort_b_n_n-1.d
sort_b_n_n-2.d
sort_b_n_n-3.d
sort_b_n_n.t
sort_b_n-1.d
sort_b_n-1.s
sort_b_n.d
sort_b_n.s
sort_b_n.t
sort_n_a-a.s
sort_n_a-b.s
sort_no-1.d
sort_no-2.d
sort_no.t
sort.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
sort.t
sysroot-prefix-x.s
sysroot-prefix-y.s
sysroot-prefix.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
weak1.s
weak2.s
weak.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
weak.t