OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /open8_urisc/trunk/gnu/binutils/ld/testsuite/ld-elf
    from Rev 157 to Rev 163
    Reverse comparison

Rev 157 → Rev 163

/pr13250-1.c
0,0 → 1,8
int common1[8];
void
foo ()
{
int i;
for (i = 0; i < sizeof (common1)/ sizeof (common1[0]); i++)
common1[i] = -1;
}
/shared.exp
157,6 → 157,15
{"Build libpr11138-2.o"
"-r -nostdlib" ""
{pr11138-2.c} {} "libpr11138-2.o"}
{"Build pr13250-1.so"
"-shared" "-fPIC"
{pr13250-1.c} {} "libpr13250-1.so"}
{"Build pr13250-2.so with libpr13250-1.so"
"-shared tmpdir/libpr13250-1.so" "-fPIC"
{pr13250-2.c} {} "libpr13250-2.so"}
{"Build libpr13250-3.o"
"-r -nostdlib" ""
{pr13250-3.c} {} "libpr13250-3.o"}
}
 
run_cc_link_tests $build_tests
283,6 → 292,9
{"Run with libpr11138-1.so pr11138-2.c"
"--version-script=pr11138-2.map tmpdir/libpr11138-1.so tmpdir/pr11138-2.o" ""
{dummy.c} "pr11138b" "pr11138.out"}
{"Run with pr13250-3.c, libpr13250-1.so and libpr13250-2.so"
"--as-needed tmpdir/pr13250-3.o tmpdir/libpr13250-1.so tmpdir/libpr13250-2.so" ""
{dummy.c} "pr13250" "pass.out"}
}
 
# NetBSD ELF systems do not currently support the .*_array sections.
/pr12975.d
0,0 → 1,11
#ld: --gc-sections -shared -version-script pr12975.t
#readelf: -s --wide
#target: *-*-linux* *-*-gnu*
#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
 
#failif
#...
+[0-9]+: +[0-9a-f]+ +[0-9]+ +FUNC +LOCAL +DEFAULT +[1-9]+ bar
#...
/pr12975.s
0,0 → 1,10
.section .text.foo,"ax",%progbits
.globl foo
.type foo, %function
foo:
.byte 0
.section .text.bar,"ax",%progbits
.type bar, %function
.globl bar
bar:
.byte 0
/pr12975.t
0,0 → 1,6
{
global:
foo;
local:
*;
};
/pr13250-2.c
0,0 → 1,10
extern int common1[8];
 
extern void foo ();
 
int
bar ()
{
foo ();
return common1[4];
}
/elf.exp
58,40 → 58,7
# should not seg-fault whilst creating the binary.
#
# Only run the test on targets thats support creating shared libraries.
if { ! [istarget arc-*-*]
&& ! [istarget avr-*-*]
&& ! [istarget cr16-*-*]
&& ! [istarget cris*-*-*]
&& ! [istarget crx-*-*]
&& ! [istarget d10v-*-*]
&& ! [istarget d30v-*-*]
&& ! [istarget dlx-*-*]
&& ! [istarget fr30-*-*]
&& ! [istarget frv-*-*]
&& ! [istarget h8300-*-*]
&& ! [istarget i860-*-*]
&& ! [istarget i960-*-*]
&& ! [istarget ip2k-*-*]
&& ! [istarget iq2000-*-*]
&& ! [istarget lm32-*-*]
&& ! [istarget m32c-*-*]
&& ! [istarget m32r-*-*]
&& ! [istarget mcore*-*-*]
&& ! [istarget mep-*-*]
&& ! [istarget microblaze-*-*]
&& ! [istarget mn10200-*-*]
&& ! [istarget moxie-*-*]
&& ! [istarget ms1-*-*]
&& ! [istarget msp430-*-*]
&& ! [istarget openrisc-*-*]
&& ! [istarget or32-*-*]
&& ! [istarget pj-*-*]
&& ! [istarget rx-*-*]
&& ! [istarget spu-*-*]
&& ! [istarget v850*-*-*]
&& ! [istarget xstormy16-*-*]
&& ! [istarget *-*-irix*]
&& ! [istarget *-*-rtems] } {
if { [check_shared_lib_support] } then {
run_ld_link_tests {
{"Build shared library for next test"
"-shared" "" "note-3.s" {} "note-3.so" }
138,6 → 105,13
return
}
 
if [check_gc_sections_available] {
run_cc_link_tests {
{"PR ld/13195" "-Wl,--gc-sections" ""
{pr13195.c} {} "pr13195"}
}
}
 
set array_tests {
{"preinit array" "" "" {preinit.c} "preinit" "preinit.out"}
{"init array" "" "" {init.c} "init" "init.out"}
/pr13250-3.c
0,0 → 1,22
#include <stdio.h>
#include <stdlib.h>
 
int common1[1];
char common2[2];
 
extern int bar ();
 
int
main ()
{
int i;
if (bar () != -1)
abort ();
if (common1[0] != -1)
abort ();
for (i = 0; i < sizeof (common2)/ sizeof (common2[0]); i++)
if (common2[i] != 0)
abort ();
printf ("PASS\n");
return 0;
}
/pr13177.d
0,0 → 1,12
#source: pr13177.s
#ld: --gc-sections -shared
#readelf: -s -D --wide
#target: *-*-linux* *-*-gnu*
#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
 
#failif
#...
.*: 0+0 +0 +NOTYPE +GLOBAL +DEFAULT +UND bar
#...
/pr13177.s
0,0 → 1,9
.section .text.foo,"ax",%progbits
.globl foo
.type foo, %function
foo:
.byte 0
.section .data.opt_out,"aw",%progbits
.type opt_out, %object
opt_out:
.dc.a bar
/pr13195.c
0,0 → 1,5
int
main ()
{
return 0;
}
/pr13195.d
0,0 → 1,10
#ld: --gc-sections -shared -version-script pr13195.t
#readelf: -s --wide -D
#target: *-*-linux* *-*-gnu*
#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
 
#...
+[0-9]+ +[0-9]+: +[0-9a-f]+ +[0-9]+ +FUNC +GLOBAL +DEFAULT +[1-9]+ foo
#pass
/pr13195.s
0,0 → 1,6
.section .text.new_foo,"ax",%progbits
.globl new_foo
.type new_foo, %function
new_foo:
.byte 0
.symver new_foo,foo@@VERS_2.0
/pr13195.t
0,0 → 1,6
VERS_2.0 {
global:
foo;
local:
*;
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.