diff options
author | Alan Modra <amodra@gmail.com> | 2014-06-16 11:28:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-06-16 12:32:56 +0930 |
commit | 1ab668bf2a42ad6c9ef2f691257118faba65bfe9 (patch) | |
tree | f19b60d720e215009f91655719f489f8e52c93c4 /gas/config | |
parent | 7e9def1e93c408b5df80ed67b79ef7ac9d5c9289 (diff) | |
download | gdb-1ab668bf2a42ad6c9ef2f691257118faba65bfe9.zip gdb-1ab668bf2a42ad6c9ef2f691257118faba65bfe9.tar.gz gdb-1ab668bf2a42ad6c9ef2f691257118faba65bfe9.tar.bz2 |
Report an error on x86 pcrel BFD_RELOC_SIZE64
* config/tc-i386.c (reloc): Don't avoid pcrel check for
BFD_RELOC_SIZE64. Return NO_RELOC on failing pcrel check.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 341d100..d0d4d6c 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2846,9 +2846,12 @@ reloc (unsigned int size, if (other == BFD_RELOC_SIZE32) { if (size == 8) - return BFD_RELOC_SIZE64; + other = BFD_RELOC_SIZE64; if (pcrel) - as_bad (_("there are no pc-relative size relocations")); + { + as_bad (_("there are no pc-relative size relocations")); + return NO_RELOC; + } } #endif |