diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-04-02 04:44:01 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-04-02 04:44:01 -0700 |
commit | 516231b7c7278e4e5a726cff1f798beb4bbce73c (patch) | |
tree | cf3dfe01570178c7c3ad8ed0f74c41a7e4febf49 /ld/testsuite | |
parent | bb8974772177ff4c043bfc28305bba66e7badf36 (diff) | |
download | gdb-516231b7c7278e4e5a726cff1f798beb4bbce73c.zip gdb-516231b7c7278e4e5a726cff1f798beb4bbce73c.tar.gz gdb-516231b7c7278e4e5a726cff1f798beb4bbce73c.tar.bz2 |
linux-x86.exp: Compile with -I../bfd
Compile with -I../bfd to include <bfd_stdint.h> in PR ld/25749 tests.
* testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
-I../bfd.
(check_pr25749b): Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/linux-x86.exp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp index 7186ded..180674d 100644 --- a/ld/testsuite/ld-elf/linux-x86.exp +++ b/ld/testsuite/ld-elf/linux-x86.exp @@ -148,7 +148,7 @@ proc check_pr25749a {testname srcfilea srcfileb cflags ldflags lderror} { [list \ "Build $testname ($ldflags $cflags)" \ "$ldflags tmpdir/pr25749-bin.o" \ - "$cflags" \ + "$cflags -I../bfd" \ [list $srcfilea $srcfileb]\ {{readelf {-Wr} pr25749.rd}} \ "${testname}a" \ @@ -162,7 +162,7 @@ proc check_pr25749a {testname srcfilea srcfileb cflags ldflags lderror} { [list $srcfilea $srcfileb]\ "${testname}a" \ "pass.out" \ - "$cflags" \ + "$cflags -I../bfd" \ ] \ ] } else { @@ -170,7 +170,7 @@ proc check_pr25749a {testname srcfilea srcfileb cflags ldflags lderror} { [list \ "Build $testname ($ldflags $cflags)" \ "$ldflags tmpdir/pr25749-bin.o" \ - "$cflags" \ + "$cflags -I../bfd" \ [list $srcfilea $srcfileb]\ [list [list error_output $lderror]] \ "$testname" \ @@ -250,7 +250,7 @@ proc check_pr25749b {testname srcfilea srcfileb cflags ldflags dsoldflags} { [list \ "Build lib${testname}.so ($dsoldflags)" \ "-shared $dsoldflags tmpdir/pr25749-bin.o" \ - "-fPIC" \ + "-fPIC -I../bfd" \ [list $srcfileb] \ {{readelf {-Wr} pr25749.rd}} \ "lib${testname}.so" \ @@ -264,7 +264,7 @@ proc check_pr25749b {testname srcfilea srcfileb cflags ldflags dsoldflags} { [list $srcfilea]\ "${testname}b" \ "pass.out" \ - "$cflags" \ + "$cflags -I../bfd" \ ] \ ] } |