This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Calling equ'd symbols in GAS
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 5 Aug 2011 13:44:17 +0930
- Subject: Re: Calling equ'd symbols in GAS
- References: <1311911354.3441.210.camel@dharmatech-ThinkPad-T61> <20110729060054.GV1081@bubble.grove.modra.org> <1311919859.3441.220.camel@dharmatech-ThinkPad-T61> <20110729063212.GW1081@bubble.grove.modra.org> <1311922213.3441.226.camel@dharmatech-ThinkPad-T61> <20110729074600.GX1081@bubble.grove.modra.org> <1311926419.3441.227.camel@dharmatech-ThinkPad-T61> <CAMe9rOoyYM0asPkQ3qwTeruYro3rS8nnev-Ngmi2XqqTuu4Few@mail.gmail.com> <1312156228.3441.284.camel@dharmatech-ThinkPad-T61> <CAMe9rOqaqmjqcb0aKGXGvn+cQf2FOWVQn6AHALyDWGACqKNK3Q@mail.gmail.com>
On Mon, Aug 01, 2011 at 12:29:17PM -0700, H.J. Lu wrote:
> * gas/i386/x86-64-branch.s: Add tests for direct branch.
> * gas/i386/x86-64-branch.d: Updated.
> * gas/i386/ilp32/x86-64-branch.d: Likewise.
Needs tweaking. eg. on x86_64-mingw32, I see
regexp_diff match failure
regexp "^[ ]*[a-f0-9]+: e8 00 00 00 00 callq 0x1f 1b: R_X86_64_PC32 \*ABS\*\+0x10003c$"
line " 1a: e8 5b 00 10 00 callq 10007a <.text+0x10007a> 1b: R_X86_64_PC32 *ABS*"
regexp_diff match failure
regexp "^[ ]*[a-f0-9]+: e9 00 00 00 00 jmpq 0x24 20: R_X86_64_PC32 \*ABS\*\+0x10003c$"
line " 1f: e9 60 00 10 00 jmpq 100084 <.text+0x100084> 20: R_X86_64_PC32 *ABS*"
regexp_diff match failure
regexp "^[ ]*[a-f0-9]+: e8 00 00 00 00 callq 0x43 3f: R_X86_64_PC32 \*ABS\*\+0x10003c$"
line " 3e: e8 7f 00 10 00 callq 1000c2 <.text+0x1000c2> 3f: R_X86_64_PC32 *ABS*"
regexp_diff match failure
regexp "^[ ]*[a-f0-9]+: e9 00 00 00 00 jmpq 0x48 44: R_X86_64_PC32 \*ABS\*\+0x10003c$"
line " 43: e9 84 00 10 00 jmpq 1000cc <.text+0x1000cc> 44: R_X86_64_PC32 *ABS*"
FAIL: x86-64 indirect branch
--
Alan Modra
Australia Development Lab, IBM