Browse Source
Revert "Prevent the ASCII linker script directive from generating huge amounts of padding if the size expression is not a constant." This reverts commitusers/aburgess/try-core-file-pid0adbe951fc9. Revert "ld test asciz and ascii fails" This reverts the ascii.d part of commit5f497256be. Revert "Add support for the ASCII directive inside linker scripts." This mostly reverts commit9fe129a410leaving the asciz.d and asciz.t changes in place.
11 changed files with 33 additions and 213 deletions
@ -1,25 +0,0 @@ |
|||
#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 |
|||
@ -1,11 +0,0 @@ |
|||
.extern ecc_start |
|||
.section .text |
|||
main: |
|||
.long 0x45444F43 |
|||
.long 0x12345678 |
|||
|
|||
.section .data |
|||
.long 0x9abcdef0 |
|||
|
|||
.section .bss |
|||
.long 0 |
|||
@ -1,38 +0,0 @@ |
|||
_start = 0x000000; |
|||
|
|||
SECTIONS |
|||
{ |
|||
. = 0x1000 + SIZEOF_HEADERS; |
|||
|
|||
.header ALIGN (0x100) (READONLY) : |
|||
{ |
|||
ASCII (16) "program name" |
|||
ASCII (64) "empty" |
|||
ASCII (4 * 8) "comment 1\n" |
|||
ASCII (32) "comment 2\n" |
|||
ASCII (32) "comment 3\n" |
|||
ASCII (24) "comment 4\n" |
|||
ASCII (64) "I meant to say: This is way too long" |
|||
} |
|||
|
|||
.text ALIGN (0x100) : |
|||
{ |
|||
entry = .; |
|||
*(.text) |
|||
} |
|||
|
|||
.data : AT (0x400000) |
|||
{ |
|||
*(.data) |
|||
} |
|||
|
|||
. = ALIGN(0x20); |
|||
|
|||
.bss : |
|||
{ |
|||
*(.bss) |
|||
} |
|||
|
|||
/DISCARD/ : { *(*) } |
|||
} |
|||
|
|||
Loading…
Reference in new issue