The following is rejected by gas: .intel_syntax noprefix mov rax, QWORD PTR __CTOR_END__-8[rip]
These equivalent instructions are accepted by gas as expected: mov rax, QWORD PTR __CTOR_END__+-8[rip] mov rax, QWORD PTR -8+__CTOR_END__[rip] mov rax, QWORD PTR __CTOR_END__[rip-8] Ofcourse the variant that gas rejects is the one which GCC emits. :-( -- Summary: Error: `QWORD PTR __CTOR_END__-8[rip]' is not a valid base/index expression Product: binutils Version: 2.19 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: rask at sygehus dot dk CC: bug-binutils at gnu dot org GCC target triplet: x86_64-unknown-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=5034 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils