]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
x86: allow @secrel32 also in data definitions
authorJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 11:28:30 +0000 (13:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 May 2021 11:28:30 +0000 (13:28 +0200)
commit5e0a033bd2927a027a5fb2c93d9e403c4f505bd0
treefdc1c442126f599f958e27df0f7f262ac9b06e4e
parent3e301ce0b54002d92808f6bba08b8f793a5cdfa5
x86: allow @secrel32 also in data definitions

Now that lex_got() is uniform for all targets using it, permit COFF
targets to also use @secrel32 with, in particular, .long. This is more
natural than the custom .secrel32 directive, and also allows more
flexibility (the "+six" form of the two added test lines doesn't work
with a .secrel32 equivalent, in that it silently produces an unintended
relocation type).

As an extra benefit this also makes sure that data definitions in Intel
syntax mode would get treated like they do for e.g. ELF targets.
gas/ChangeLog
gas/config/tc-i386.h
gas/testsuite/gas/i386/secrel.d
gas/testsuite/gas/i386/secrel.s