mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-15 13:49:30 +08:00

Fix these fails: alpha-dec-vms +FAIL: ld-scripts/asciz alpha-dec-vms +FAIL: ld-scripts/ascii i386-go32 +FAIL: ld-scripts/asciz sh-coff +FAIL: ld-scripts/asciz It's better to positively select targets for .section support than to try to exclude all targets that don't. Make a new is_coff_format so we can easily select such. binutils/ * testsuite/lib/binutils-common.exp (is_coff_format): New. ld/ * testsuite/ld-scripts/ascii.d: Use is_elf_format and is_coff_format to select targets, exclude ti coff. * testsuite/ld-scripts/asciz.d: Likewise. Accept trailing zeros.
26 lines
1.1 KiB
Makefile
26 lines
1.1 KiB
Makefile
#source: ascii.s
|
|
#ld: -T ascii.t
|
|
#objdump: -s -j .header
|
|
#target: [is_elf_format] [is_coff_format]
|
|
#notarget: tic4x-*-* tic54x-*-*
|
|
|
|
.*: file format .*
|
|
|
|
Contents of section .header:
|
|
.... 70726f67 72616d20 6e616d65 00000000 program name....
|
|
.... 656d7074 79000000 00000000 00000000 empty...........
|
|
.... 00000000 00000000 00000000 00000000 ................
|
|
.... 00000000 00000000 00000000 00000000 ................
|
|
.... 00000000 00000000 00000000 00000000 ................
|
|
.... 636f6d6d 656e7420 310a0000 00000000 comment 1.......
|
|
.... 00000000 00000000 00000000 00000000 ................
|
|
.... 636f6d6d 656e7420 320a0000 00000000 comment 2.......
|
|
.... 00000000 00000000 00000000 00000000 ................
|
|
.... 636f6d6d 656e7420 330a0000 00000000 comment 3.......
|
|
.... 00000000 00000000 00000000 00000000 ................
|
|
.... 636f6d6d 656e7420 340a0000 00000000 comment 4.......
|
|
.... 00000000 00000000 49206d65 616e7420 ........I meant
|
|
.... 746f2073 61793a20 54686973 20697320 to say: This is
|
|
.... 77617920 746f6f20 6c6f6e67 00000000 way too long....
|
|
#pass
|