ld: fix plugin tests for MIPS PIC
On MIPS, for PIC objects, symbols may reference 2 times: once from the caller, and once from GOT. Thus ld may complains 2 times about "undefined reference". So we add a new "#?" line to every effected testsuite.
This commit is contained in:
@@ -30,5 +30,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
hook called: all symbols read.
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
#...
|
||||
|
||||
@@ -31,5 +31,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
hook called: all symbols read.
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
#...
|
||||
|
||||
@@ -35,5 +35,6 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
#...
|
||||
|
||||
@@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
|
||||
@@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
|
||||
@@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
|
||||
@@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
|
||||
@@ -30,5 +30,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
hook called: all symbols read.
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
#...
|
||||
|
||||
@@ -31,5 +31,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
hook called: all symbols read.
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
#...
|
||||
|
||||
@@ -35,5 +35,6 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
.*: tmpdir/main.o: in function `main':
|
||||
.*main.c.*: undefined reference to `\.?func'
|
||||
#?.*main.c.*: undefined reference to `\.?func'
|
||||
hook called: cleanup.
|
||||
#...
|
||||
|
||||
Reference in New Issue
Block a user