http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49860
Summary: [x32] Error: cannot represent relocation type BFD_RELOC_64 in x32 mode Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: hjl.to...@gmail.com CC: ubiz...@gmail.com [hjl@gnu-6 ilp32-30]$ cat x.i extern char inbuf[]; extern char outbuf[]; extern unsigned insize; extern unsigned inptr; static int max_len; static int peek_bits; void build_tree() { int len; char *prefixp; max_len = inbuf[inptr++]; peek_bits = ((max_len) <= (12) ? (max_len) : (12)); prefixp = &outbuf[1<<peek_bits]; for (len = 1; len <= peek_bits; len++) { } while (prefixp > outbuf) *--prefixp = 0; } [hjl@gnu-6 ilp32-30]$ make /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -S -o x.s -mx32 -funroll-all-loops -O3 -dp x.i /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -mx32 -funroll-all-loops -O3 -dp -c -o x.o x.s x.s: Assembler messages: x.s:25: Error: cannot represent relocation type BFD_RELOC_64 in x32 mode make: *** [x.o] Error 1 [hjl@gnu-6 ilp32-30]