ld: Use ABSOLUTE() when taking differences between relative symbols
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 1 Apr 2011 19:59:04 +0000 (12:59 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 1 Apr 2011 19:59:04 +0000 (12:59 -0700)
commit6fa865966e7121ef7d430ac5f8916993300f5e1b
tree6331edafbd5d55ba621abf1f568efc3df8ad1153
parent0620743d1e54cf48aa8e5cf5636739addae49d60
ld: Use ABSOLUTE() when taking differences between relative symbols

binutils 2.21.51.0.6, and possibly other versions, generate the wrong
result when subtracting two section-relative symbols (the final result
ends up having the base of the section incorrectly added to it.)  Work
around this by using ABSOLUTE() on the symbols to force the result to
become absolute.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/syslinux.ld
dos/dosexe.ld