diff mbox

ld/aarch64: xfail non-PIC shared object tests on aarch64

Message ID 1400250371-19181-1-git-send-email-will.newton@linaro.org
State Accepted
Headers show

Commit Message

Will Newton May 16, 2014, 2:26 p.m. UTC
aarch64 does not support building non-PIC shared objects, so mark
tests for these as xfail.

2014-05-16  Will Newton  <will.newton@linaro.org>

	* ld-shared/shared.exp: Mark non-PIC shared object tests
	as xfail on aarch64.
---
 ld/testsuite/ld-shared/shared.exp | 3 +++
 1 file changed, 3 insertions(+)

Comments

Richard Earnshaw May 16, 2014, 2:35 p.m. UTC | #1
On 16/05/14 15:26, Will Newton wrote:
> aarch64 does not support building non-PIC shared objects, so mark
> tests for these as xfail.
> 
> 2014-05-16  Will Newton  <will.newton@linaro.org>
> 
> 	* ld-shared/shared.exp: Mark non-PIC shared object tests
> 	as xfail on aarch64.
> ---
>  ld/testsuite/ld-shared/shared.exp | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
> index 9996ece..c723ef7 100644
> --- a/ld/testsuite/ld-shared/shared.exp
> +++ b/ld/testsuite/ld-shared/shared.exp
> @@ -244,6 +244,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
>  	if [ string match $shared_needs_pic "yes" ] {
>  	    setup_xfail "arm*-*-linux*"
>  	}
> +	setup_xfail "aarch64*-*-linux*"

Shouldn't this (and the other cases) be inside the test immediately
above (shared_needs_pic)?

>  	shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
>  
>  	# Test ELF shared library relocations with a non-zero load
> @@ -270,6 +271,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
>  	if [ string match $shared_needs_pic "yes" ] {
>  	    setup_xfail "arm*-*-linux*"
>  	}
> +	setup_xfail "aarch64*-*-linux*"
>  	shared_test shnp "shared (non PIC, load offset)" \
>  		mainnp.o sh1np.o sh2np.o shared \
>  		"-T $srcdir/$subdir/elf-offset.ld"
> @@ -326,6 +328,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m
>  	    if [ string match $shared_needs_pic "yes" ] {
>  		setup_xfail "arm*-*-linux*"
>  	    }
> +	    setup_xfail "aarch64*-*-linux*"
>  	    shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared
>  	}
>      } else {
>
Will Newton May 16, 2014, 2:41 p.m. UTC | #2
On 16 May 2014 15:35, Richard Earnshaw <rearnsha@arm.com> wrote:
> On 16/05/14 15:26, Will Newton wrote:
>> aarch64 does not support building non-PIC shared objects, so mark
>> tests for these as xfail.
>>
>> 2014-05-16  Will Newton  <will.newton@linaro.org>
>>
>>       * ld-shared/shared.exp: Mark non-PIC shared object tests
>>       as xfail on aarch64.
>> ---
>>  ld/testsuite/ld-shared/shared.exp | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
>> index 9996ece..c723ef7 100644
>> --- a/ld/testsuite/ld-shared/shared.exp
>> +++ b/ld/testsuite/ld-shared/shared.exp
>> @@ -244,6 +244,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
>>       if [ string match $shared_needs_pic "yes" ] {
>>           setup_xfail "arm*-*-linux*"
>>       }
>> +     setup_xfail "aarch64*-*-linux*"
>
> Shouldn't this (and the other cases) be inside the test immediately
> above (shared_needs_pic)?

shared_needs_pic is rather misnamed. It means "does this ARM compiler
emit MOVW instructions".

>
>>       shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
>>
>>       # Test ELF shared library relocations with a non-zero load
>> @@ -270,6 +271,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
>>       if [ string match $shared_needs_pic "yes" ] {
>>           setup_xfail "arm*-*-linux*"
>>       }
>> +     setup_xfail "aarch64*-*-linux*"
>>       shared_test shnp "shared (non PIC, load offset)" \
>>               mainnp.o sh1np.o sh2np.o shared \
>>               "-T $srcdir/$subdir/elf-offset.ld"
>> @@ -326,6 +328,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m
>>           if [ string match $shared_needs_pic "yes" ] {
>>               setup_xfail "arm*-*-linux*"
>>           }
>> +         setup_xfail "aarch64*-*-linux*"
>>           shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared
>>       }
>>      } else {
>>
>
>
Marcus Shawcroft May 19, 2014, 8:26 a.m. UTC | #3
On 16 May 2014 15:26, Will Newton <will.newton@linaro.org> wrote:
> aarch64 does not support building non-PIC shared objects, so mark
> tests for these as xfail.
>
> 2014-05-16  Will Newton  <will.newton@linaro.org>
>
>         * ld-shared/shared.exp: Mark non-PIC shared object tests
>         as xfail on aarch64.

Looks OK to me, if Richard doesn;t come back in the next 24h go ahead.
Cheers
/Marcus
Richard Earnshaw May 19, 2014, 10:41 a.m. UTC | #4
On 19/05/14 09:26, Marcus Shawcroft wrote:
> On 16 May 2014 15:26, Will Newton <will.newton@linaro.org> wrote:
>> aarch64 does not support building non-PIC shared objects, so mark
>> tests for these as xfail.
>>
>> 2014-05-16  Will Newton  <will.newton@linaro.org>
>>
>>         * ld-shared/shared.exp: Mark non-PIC shared object tests
>>         as xfail on aarch64.
> 
> Looks OK to me, if Richard doesn;t come back in the next 24h go ahead.
> Cheers
> /Marcus
> 

This is fine.  It would be nice if the misnamed stuff could be sorted
out, but that's a separate issue.

R.
diff mbox

Patch

diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 9996ece..c723ef7 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -244,6 +244,7 @@  if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
 	if [ string match $shared_needs_pic "yes" ] {
 	    setup_xfail "arm*-*-linux*"
 	}
+	setup_xfail "aarch64*-*-linux*"
 	shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
 
 	# Test ELF shared library relocations with a non-zero load
@@ -270,6 +271,7 @@  if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
 	if [ string match $shared_needs_pic "yes" ] {
 	    setup_xfail "arm*-*-linux*"
 	}
+	setup_xfail "aarch64*-*-linux*"
 	shared_test shnp "shared (non PIC, load offset)" \
 		mainnp.o sh1np.o sh2np.o shared \
 		"-T $srcdir/$subdir/elf-offset.ld"
@@ -326,6 +328,7 @@  if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m
 	    if [ string match $shared_needs_pic "yes" ] {
 		setup_xfail "arm*-*-linux*"
 	    }
+	    setup_xfail "aarch64*-*-linux*"
 	    shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared
 	}
     } else {