x86: Force relocation against local absolute symbol
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 1 Apr 2020 12:40:45 +0000 (05:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 1 Apr 2020 12:41:06 +0000 (05:41 -0700)
commitefc3a950394676d0781f0397655d1e8be56450bf
tree1052e935c34a5ebe3f01be8cd9b22e66c60ab257
parent15d47c3a70526cce7bb6a9dcdbd1c19c40247e32
x86: Force relocation against local absolute symbol

Define TC_FORCE_RELOCATION_ABS to force relocation against local
absolute symbol.

PR gas/25756
* config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
* testsuite/gas/i386/localpic.s: Add a test for relocation
against local absolute symbol.
* testsuite/gas/i386/x86-64-localpic.s: Likewise.
* testsuite/gas/i386/localpic.d: Updated.
* testsuite/gas/i386/x86-64-localpic.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
gas/ChangeLog
gas/config/tc-i386.h
gas/testsuite/gas/i386/ilp32/x86-64-localpic.d
gas/testsuite/gas/i386/localpic.d
gas/testsuite/gas/i386/localpic.s
gas/testsuite/gas/i386/x86-64-localpic.d
gas/testsuite/gas/i386/x86-64-localpic.s