mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 19:06:54 +08:00
* ld-scripts/dynamic-sections*: New test.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2002-07-09 Richard Sandiford <rsandifo@redhat.com>
|
||||||
|
|
||||||
|
* ld-scripts/dynamic-sections*: New test.
|
||||||
|
|
||||||
2002-07-09 Hans-Peter Nilsson <hp@axis.com>
|
2002-07-09 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
|
* ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
|
||||||
|
2
ld/testsuite/ld-scripts/dynamic-sections-1.s
Normal file
2
ld/testsuite/ld-scripts/dynamic-sections-1.s
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.data
|
||||||
|
.4byte foo
|
3
ld/testsuite/ld-scripts/dynamic-sections-2.s
Normal file
3
ld/testsuite/ld-scripts/dynamic-sections-2.s
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.data
|
||||||
|
.global foo
|
||||||
|
foo: .4byte 0
|
6
ld/testsuite/ld-scripts/dynamic-sections.d
Normal file
6
ld/testsuite/ld-scripts/dynamic-sections.d
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# nm: -C
|
||||||
|
# ld: -T dynamic-sections.t
|
||||||
|
# name: dynamic sections
|
||||||
|
# source: dynamic-sections-1.s
|
||||||
|
# source: dynamic-sections-2.s
|
||||||
|
#pass
|
8
ld/testsuite/ld-scripts/dynamic-sections.exp
Normal file
8
ld/testsuite/ld-scripts/dynamic-sections.exp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Check for bug introduced on 2002-06-10. See dynamic-sections.t for
|
||||||
|
# more details
|
||||||
|
|
||||||
|
if ![is_elf_format] {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
run_dump_test dynamic-sections
|
11
ld/testsuite/ld-scripts/dynamic-sections.t
Normal file
11
ld/testsuite/ld-scripts/dynamic-sections.t
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.data : { *(.data) }
|
||||||
|
.rodata : { *(.rodata) }
|
||||||
|
|
||||||
|
/* The .rel* sections are typically placed here, because of the way
|
||||||
|
elf32.em handles orphaned sections. A bug introduced on 2002-06-10
|
||||||
|
would cause . to be 0 at this point. */
|
||||||
|
|
||||||
|
_bar = ASSERT (. > 0, "Bad . value");
|
||||||
|
}
|
Reference in New Issue
Block a user