http://llvm.org/bugs/show_bug.cgi?id=9385
Summary: MC assembler doesn't accept segment override for
movs/lods
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Blocks: 4068
while compiling linux with PaX, i get the following error:
arch/x86/lib/usercopy_32.c:89:3: error: invalid operand for instruction
__do_strncpy_from_user(dst, src, count, res);
^
arch/x86/lib/usercopy_32.c:46:4: note: instantiated from:
"0: lodsb " __copyuser_seg" (%%esi)\n" \
^
<inline asm>:3:10: note: instantiated into assembly here
0: lodsb %gs: (%esi)
^
it appears that there's no form of movs where one could add a segment override
to the source operand. gas accepts the following:
lodsb %gs:(%esi)
movsb %gs:(%esi),(%edi)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs