]> granicus.if.org Git - yasm/commit
Fix #202 (incorrect GOT offset generated in NASM mode).
authorPeter Johnson <peter@tortall.net>
Sat, 15 May 2010 07:45:48 +0000 (07:45 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 15 May 2010 07:45:48 +0000 (07:45 -0000)
commitd5ae19570398116de4d7c31d1a72de771715c138
treed429bdabc9e18cb0aa0404f306998a4b610c683b
parent4003fa1bc0c69cf7cc08119b7452e3b8c68829cb
Fix #202 (incorrect GOT offset generated in NASM mode).

Don't generate an additional offset for _GLOBAL_OFFSET_TABLE_ if a WRT was
specified (the NASM usage).  In GAS, _GLOBAL_OFFSET_TABLE_ doesn't have a WRT
but instead has special handling.

This isn't quite *exactly* the right fix; a better fix would be to recognize
the _GLOBAL_OFFSET_TABLE_ case in the GAS parser and adjust the value
appropriately there.  However, this fix seems to do the right thing in the
meantime for both GAS and NASM cases.

svn path=/trunk/yasm/; revision=2321
modules/objfmts/elf/elf-x86-x86.c
modules/objfmts/elf/tests/elfso.hex