From: Alan Modra Date: Mon, 15 Aug 2005 14:08:58 +0000 (+0000) Subject: * ld-elf/empty.s: Define "start". X-Git-Tag: gdb-csl-arm-20051020-branchpoint~458 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bf3b8c2517cf7cf999b8f0e878882874fc91c26;p=thirdparty%2Fbinutils-gdb.git * ld-elf/empty.s: Define "start". * ld-elf/merge2.d: xfail arc-*-* and dlx-*-*. * ld-scripts/empty-aligned.s: No .data section. * ld-scripts/empty-aligned.t: Discard most sections. * ld-scripts/empty-aligned.d: Adjust. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index af1cc5fed47..55fa5e8bdb5 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2005-08-15 Alan Modra + + * ld-elf/empty.s: Define "start". + * ld-elf/merge2.d: xfail arc-*-* and dlx-*-*. + * ld-scripts/empty-aligned.s: No .data section. + * ld-scripts/empty-aligned.t: Discard most sections. + * ld-scripts/empty-aligned.d: Adjust. + 2005-08-11 Hans-Peter Nilsson * ld-cris/expdyn1.s (expobj): Set size here, at definition... diff --git a/ld/testsuite/ld-elf/empty.s b/ld/testsuite/ld-elf/empty.s index 3176f66d9d4..e2c8203df01 100644 --- a/ld/testsuite/ld-elf/empty.s +++ b/ld/testsuite/ld-elf/empty.s @@ -1,6 +1,9 @@ .section .bss bar: .text + .type start,"function" + .global start +start: .type _start,"function" .global _start _start: diff --git a/ld/testsuite/ld-elf/merge2.d b/ld/testsuite/ld-elf/merge2.d index cb49c51df7f..9465ad5e673 100644 --- a/ld/testsuite/ld-elf/merge2.d +++ b/ld/testsuite/ld-elf/merge2.d @@ -1,6 +1,7 @@ #source: merge2.s #ld: -T merge.ld #objdump: -s +#xfail: "arc-*-*" "dlx-*-*" .*: file format .*elf.* diff --git a/ld/testsuite/ld-scripts/empty-aligned.d b/ld/testsuite/ld-scripts/empty-aligned.d index 493a40c6a21..e342f7ba44a 100644 --- a/ld/testsuite/ld-scripts/empty-aligned.d +++ b/ld/testsuite/ld-scripts/empty-aligned.d @@ -9,4 +9,4 @@ Program Headers: Section to Segment mapping: +Segment Sections\.\.\. - +00.*\.text.*\.data.* + +00 +.text diff --git a/ld/testsuite/ld-scripts/empty-aligned.s b/ld/testsuite/ld-scripts/empty-aligned.s index f386e9e9dfe..2079aa7dd1c 100644 --- a/ld/testsuite/ld-scripts/empty-aligned.s +++ b/ld/testsuite/ld-scripts/empty-aligned.s @@ -1,4 +1,2 @@ .text .long 123 - .data - .long 123 diff --git a/ld/testsuite/ld-scripts/empty-aligned.t b/ld/testsuite/ld-scripts/empty-aligned.t index 4deb240f7bc..e59bc203608 100644 --- a/ld/testsuite/ld-scripts/empty-aligned.t +++ b/ld/testsuite/ld-scripts/empty-aligned.t @@ -25,6 +25,5 @@ SECTIONS { *(.text4) } - .data : { *(.data) } - .bss : { *(.bss) } + /DISCARD/ : { *(*) } }