-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define. * config/tc-mips.c (md_pcrel_from): Remove error message. (md_apply_fix): Convert PC-relative BFD_RELOC_32s to BFD_RELOC_32_PCREL. Report a specific error message for unhandled PC-relative expressions. Handle BFD_RELOC_8. gas/testsuite/ * gas/all/gas.exp: Remove XFAIL of forward.d for MIPS. * gas/mips/pcrel-1.s, gas/mips/pcrel-1.d, gas/mips/pcrel-2.s, gas/mips/pcrel-2.d, gas/mips/pcrel-3.s, gas/mips/pcrel-3.l, gas/mips/pcrel-4.s, gas/mips/pcrel-4-32.d, gas/mips/pcrel-4-n32.d, gas/mips/pcrel-4-64.d: New tests. * gas/mips/mips.exp: Run them. * gas/mips/lui-2.l: Tweak error message for line 7. ld/testsuite/ * ld-elf/merge.d: Remove MIPS XFAIL.
- Loading branch information
Showing
19 changed files
with
187 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
2014-03-20 Richard Sandiford <[email protected]> | ||
|
||
* config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define. | ||
* config/tc-mips.c (md_pcrel_from): Remove error message. | ||
(md_apply_fix): Convert PC-relative BFD_RELOC_32s to | ||
BFD_RELOC_32_PCREL. Report a specific error message for unhandled | ||
PC-relative expressions. Handle BFD_RELOC_8. | ||
|
||
2014-03-19 Jose E. Marchesi <[email protected]> | ||
|
||
* config/tc-sparc.c (hpriv_reg_table): Added entries for | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2014-03-20 Richard Sandiford <[email protected]> | ||
|
||
* gas/all/gas.exp: Remove XFAIL of forward.d for MIPS. | ||
* gas/mips/pcrel-1.s, gas/mips/pcrel-1.d, gas/mips/pcrel-2.s, | ||
gas/mips/pcrel-2.d, gas/mips/pcrel-3.s, gas/mips/pcrel-3.l, | ||
gas/mips/pcrel-4.s, gas/mips/pcrel-4-32.d, gas/mips/pcrel-4-n32.d, | ||
gas/mips/pcrel-4-64.d: New tests. | ||
* gas/mips/mips.exp: Run them. | ||
* gas/mips/lui-2.l: Tweak error message for line 7. | ||
|
||
2014-03-20 Ilya Tocar <[email protected]> | ||
|
||
* gas/i386/avx512pf-intel.d: Change memory size for vgatherpf0qps, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.*\.s: Assembler messages: | ||
.*\.s:10: Error: invalid operands \(\*UND\* and \*UND\* sections\) for `/' | ||
.*\.s:7: Error: can't resolve `bar' {\*UND\* section} - `foo' {\.text section} | ||
.*\.s:7: Error: PC-relative reference to a different section | ||
.*\.s:8: Error: can't resolve `baz' {\*UND\* section} - `bar' {\*UND\* section} | ||
.*\.s:9: Error: can't resolve `\.text' {\.text section} - `baz' {\*UND\* section} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#objdump: -dr | ||
#name: Locally-resolvable PC-relative code references | ||
|
||
.*: file format .* | ||
|
||
Disassembly of section .text: | ||
|
||
00000000 <func>: | ||
0: 3c040001 lui a0,0x1 | ||
4: 2484800c addiu a0,a0,-32756 | ||
... | ||
|
||
00008010 <foo>: | ||
#pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.text | ||
.ent func | ||
func: | ||
lui $4,%hi(foo-.) | ||
addiu $4,%lo(foo-.) | ||
.end func | ||
|
||
.space 0x8008 | ||
|
||
.ent foo | ||
foo: | ||
nop | ||
.end foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#objdump: -s | ||
#name: Locally-resolvable PC-relative data references | ||
#as: -EB | ||
|
||
#... | ||
Contents of section \.data: | ||
0000 ff0f000e 0000000c 00000000 00000008 .* | ||
#pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.data | ||
.byte 0xff | ||
.byte frob-. | ||
.half frob-. | ||
.word frob-. | ||
.quad frob-. | ||
frob: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.*: Assembler messages: | ||
.*:4: Error: PC-relative reference to a different section | ||
.*:5: Error: PC-relative reference to a different section | ||
.*:6: Error: PC-relative reference to a different section | ||
.*:9: Error: PC-relative reference to a different section | ||
.*:10: Error: PC-relative reference to a different section | ||
.*:11: Error: PC-relative reference to a different section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.text | ||
.ent func | ||
func: | ||
lui $4,%hi(foo-.) | ||
addiu $4,%lo(foo-.) | ||
lw $4,%got(foo-.)($gp) | ||
.end func | ||
|
||
.byte foo-. | ||
.half foo-. | ||
.quad foo-. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#objdump: -sr | ||
#name: Valid cross-section PC-relative references (o32) | ||
#as: -32 -EB | ||
#source: pcrel-4.s | ||
|
||
.*: file format .* | ||
|
||
RELOCATION RECORDS FOR \[\.data\]: | ||
OFFSET TYPE VALUE | ||
00000000 R_MIPS_PC32 foo | ||
00000004 R_MIPS_PC32 foo | ||
00000008 R_MIPS_PC32 foo | ||
0000000c R_MIPS_PC32 foo | ||
|
||
#... | ||
Contents of section \.data: | ||
0000 00000000 00000004 00000008 fffffff0 ................ | ||
#pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#objdump: -r | ||
#name: Valid cross-section PC-relative references (n64) | ||
#as: -64 -mips3 | ||
#source: pcrel-4.s | ||
|
||
.*: file format .* | ||
|
||
RELOCATION RECORDS FOR \[\.data\]: | ||
OFFSET TYPE VALUE | ||
0+000 R_MIPS_PC32 foo | ||
0+000 R_MIPS_NONE \*ABS\* | ||
0+000 R_MIPS_NONE \*ABS\* | ||
0+004 R_MIPS_PC32 foo\+0x0+004 | ||
0+004 R_MIPS_NONE \*ABS\*\+0x0+004 | ||
0+004 R_MIPS_NONE \*ABS\*\+0x0+004 | ||
0+008 R_MIPS_PC32 foo\+0x0+008 | ||
0+008 R_MIPS_NONE \*ABS\*\+0x0+008 | ||
0+008 R_MIPS_NONE \*ABS\*\+0x0+008 | ||
0+00c R_MIPS_PC32 foo-0x0+010 | ||
0+00c R_MIPS_NONE \*ABS\*-0x0+010 | ||
0+00c R_MIPS_NONE \*ABS\*-0x0+010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#objdump: -r | ||
#name: Valid cross-section PC-relative references (n32) | ||
#as: -n32 -mips3 | ||
#source: pcrel-4.s | ||
|
||
.*: file format .* | ||
|
||
RELOCATION RECORDS FOR \[\.data\]: | ||
OFFSET TYPE VALUE | ||
00000000 R_MIPS_PC32 foo | ||
00000004 R_MIPS_PC32 foo\+0x00000004 | ||
00000008 R_MIPS_PC32 foo\+0x00000008 | ||
0000000c R_MIPS_PC32 foo-0x00000010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.data | ||
.word foo-. | ||
.word foo-(.-4) | ||
.word foo+8-. | ||
.word foo-.-16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
2014-03-20 Richard Sandiford <[email protected]> | ||
|
||
* ld-elf/merge.d: Remove MIPS XFAIL. | ||
|
||
2014-03-20 Will Newton <[email protected]> | ||
|
||
* ld-arm/ifunc-14.rd: Update symbol values. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters