From af55cbae944c0d520feb0ed59057f255421b95f1 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 17 Jan 2013 23:39:05 +0000 Subject: [PATCH] Add missing files --- ld/testsuite/ChangeLog | 3 ++- ld/testsuite/ld-size/size32-3-i386.d | 11 +++++++++++ ld/testsuite/ld-size/size32-3-x32.d | 11 +++++++++++ ld/testsuite/ld-size/size32-3-x86-64.d | 11 +++++++++++ ld/testsuite/ld-size/size32-3a.s | 5 +++++ ld/testsuite/ld-size/size32-3b.s | 2 ++ 6 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 ld/testsuite/ld-size/size32-3-i386.d create mode 100644 ld/testsuite/ld-size/size32-3-x32.d create mode 100644 ld/testsuite/ld-size/size32-3-x86-64.d create mode 100644 ld/testsuite/ld-size/size32-3a.s create mode 100644 ld/testsuite/ld-size/size32-3b.s diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b6d521498cc..2432df42295 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -3,7 +3,8 @@ * ld-size/size32-3-i386.d: New file. * ld-size/size32-3-x32.d: Likewise. * ld-size/size32-3-x86-64.d: Likewise. - * ld-size/size32-3.s: Likewise. + * ld-size/size32-3a.s: Likewise. + * ld-size/size32-3b.s: Likewise. 2013-01-16 H.J. Lu diff --git a/ld/testsuite/ld-size/size32-3-i386.d b/ld/testsuite/ld-size/size32-3-i386.d new file mode 100644 index 00000000000..fbdd591ee96 --- /dev/null +++ b/ld/testsuite/ld-size/size32-3-i386.d @@ -0,0 +1,11 @@ +#source: size32-3a.s +#source: size32-3b.s +#as: --32 +#ld: -shared -melf_i386 -z nocombreloc +#readelf: -r --wide +#target: x86_64-*-* i?86-*-* + +#failif +#... +.* +R_386_NONE +.* +#... diff --git a/ld/testsuite/ld-size/size32-3-x32.d b/ld/testsuite/ld-size/size32-3-x32.d new file mode 100644 index 00000000000..794ac169ba2 --- /dev/null +++ b/ld/testsuite/ld-size/size32-3-x32.d @@ -0,0 +1,11 @@ +#source: size32-3a.s +#source: size32-3b.s +#as: --x32 +#ld: -shared -melf32_x86_64 -z nocombreloc +#readelf: -r --wide +#target: x86_64-*-* + +#failif +#... +.* +R_X86_64_NONE +.* +#... diff --git a/ld/testsuite/ld-size/size32-3-x86-64.d b/ld/testsuite/ld-size/size32-3-x86-64.d new file mode 100644 index 00000000000..e8c083af45d --- /dev/null +++ b/ld/testsuite/ld-size/size32-3-x86-64.d @@ -0,0 +1,11 @@ +#source: size32-3a.s +#source: size32-3b.s +#as: --64 +#ld: -shared -melf_x86_64 -z nocombreloc +#readelf: -r --wide +#target: x86_64-*-* + +#failif +#... +.* +R_X86_64_NONE +.* +#... diff --git a/ld/testsuite/ld-size/size32-3a.s b/ld/testsuite/ld-size/size32-3a.s new file mode 100644 index 00000000000..bb21345d3d2 --- /dev/null +++ b/ld/testsuite/ld-size/size32-3a.s @@ -0,0 +1,5 @@ +# 32-bit size relocation against hidden symbol in shared object + .comm xxx,40,32 + .data + .p2align 2 + .long xxx@SIZE diff --git a/ld/testsuite/ld-size/size32-3b.s b/ld/testsuite/ld-size/size32-3b.s new file mode 100644 index 00000000000..32bd543cb08 --- /dev/null +++ b/ld/testsuite/ld-size/size32-3b.s @@ -0,0 +1,2 @@ +# 32-bit size relocation against hidden symbol in shared object + .hidden xxx -- 2.30.2