GNU Binutils with patches for OS216
リビジョン | be2b629f6427812a24f38802ba1c472a2cbfab7d (tree) |
---|---|
日時 | 2017-09-22 23:05:53 |
作者 | H.J. Lu <hjl.tools@gmai...> |
コミッター | H.J. Lu |
Add a test for PR ld/22150
PR ld/22150
* testsuite/ld-elf/pr22150.vd: New file.
* testsuite/ld-elf/pr22150.ver: Likewise.
* testsuite/ld-elf/pr22150a.s: Likewise.
* testsuite/ld-elf/pr22150b.s: Likewise.
* testsuite/ld-elf/shared.exp: Run PR ld/22150 tests.
@@ -1,3 +1,12 @@ | ||
1 | +2017-09-22 H.J. Lu <hongjiu.lu@intel.com> | |
2 | + | |
3 | + PR ld/22150 | |
4 | + * testsuite/ld-elf/pr22150.vd: New file. | |
5 | + * testsuite/ld-elf/pr22150.ver: Likewise. | |
6 | + * testsuite/ld-elf/pr22150a.s: Likewise. | |
7 | + * testsuite/ld-elf/pr22150b.s: Likewise. | |
8 | + * testsuite/ld-elf/shared.exp: Run PR ld/22150 tests. | |
9 | + | |
1 | 10 | 2017-09-21 Alan Modra <amodra@gmail.com> |
2 | 11 | |
3 | 12 | * testsuite/ld-powerpc/tlsopt5.wf: Update for reduced alignment. |
@@ -0,0 +1,2 @@ | ||
1 | + | |
2 | +No version information found in this file. |
@@ -0,0 +1,6 @@ | ||
1 | +BAR { | |
2 | +global: | |
3 | + bar; | |
4 | +local: | |
5 | + *; | |
6 | +}; |
@@ -0,0 +1,6 @@ | ||
1 | + .text | |
2 | + .globl bar | |
3 | + .type bar, %function | |
4 | +bar: | |
5 | + .byte 0 | |
6 | + .size bar, .-bar |
@@ -0,0 +1,13 @@ | ||
1 | + .section .text._start,"ax",%progbits | |
2 | + .globl _start | |
3 | + .type _start, %function | |
4 | +_start: | |
5 | + .byte 0 | |
6 | + .size _start, .-_start | |
7 | + | |
8 | + .section .text.bar,"ax",%progbits | |
9 | + .globl foo | |
10 | + .type foo, %function | |
11 | +foo: | |
12 | + .dc.a bar | |
13 | + .size foo, .-foo |
@@ -170,6 +170,29 @@ if { [check_gc_sections_available] } { | ||
170 | 170 | "pr21233-3"]] |
171 | 171 | } |
172 | 172 | |
173 | +if { [check_gc_sections_available] } { | |
174 | + run_ld_link_tests [list \ | |
175 | + [list \ | |
176 | + "Build pr22150.so" \ | |
177 | + "$LFLAGS -shared --version-script pr22150.ver" \ | |
178 | + "" \ | |
179 | + "$AFLAGS_PIC" \ | |
180 | + {pr22150a.s} \ | |
181 | + {} \ | |
182 | + "pr22150.so" \ | |
183 | + ] \ | |
184 | + [list \ | |
185 | + "Build pr22150" \ | |
186 | + "$LFLAGS -e _start --gc-sections" \ | |
187 | + "tmpdir/pr22150.so" \ | |
188 | + "" \ | |
189 | + {pr22150b.s} \ | |
190 | + {{readelf -V pr22150.vd}} \ | |
191 | + "pr22150" \ | |
192 | + ] \ | |
193 | + ] | |
194 | +} | |
195 | + | |
173 | 196 | # Check to see if the C compiler works |
174 | 197 | if { [which $CC] == 0 } { |
175 | 198 | return |