[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to
From: |
Loria at phantasia dot org |
Subject: |
[Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler |
Date: |
Sun, 24 Jan 2016 09:16:16 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19311
--- Comment #4 from Loria <Loria at phantasia dot org> ---
I do encounter the same while trying to build a toolchain on OSX 10.10.5 and
Xcode 7.2
crosstool-ng 1.22.1
binutils-2.25.1
gcc-4.9.3
glibc-2.22
CT_ARCH_CPU="arm1176jzf-s"
CT_ARCH_FPU="vfp"
CT_EXTRA_CFLAGS_FOR_BUILD="-fbracket-depth=1024"
CT_EXTRA_CFLAGS_FOR_HOST="-fbracket-depth=1024"
I already could generated the assembler text:
libc-start.s: Assembler messages:
libc-start.s:70: Error: invalid constant (af) after fixup
libc-start.s:145: Error: invalid constant (ff) after fixup
thats the file I attached
taking a look at the sourcefile shows (I marked the lines the assembler
dislikes):
.L3:
ldr r2, [r0], #4
cmp r2, #0
bne .L3
bl _dl_aux_init
ldr r3, .L49+16
ldr r2, .L49+20
ldr r3, [r3]
cmp r2, #0
clz r3, r3
mov r1, #1
moveq r1, r2
mov r3, r3, lsr #5
tst r3, r1
beq .L4
ldr r3, .L49+20
ldrh r2, [r3, #42]
cmp r2, #32
beq .L6
ldr r0, .L49+24
ldr r1, .L49+28
============================
mov r2, #175
============================
ldr r3, .L49+32
bl __assert_fail
[145]
.L9:
bl __pthread_initialize_minimal
ldr r3, .L49+68
ldr ip, .L49+72
ldr r1, [r3]
ldr r3, [sp, #332]
ldrb r0, [r1, #1] @ zero_extendqisi2
ldrb r2, [r1] @ zero_extendqisi2
cmp r3, #0
ldrb r3, [r1, #2] @ zero_extendqisi2
orr r2, r2, r0, asl #8
ldrb r0, [r1, #3] @ zero_extendqisi2
orr r3, r2, r3, asl #16
orr r3, r3, r0, asl #24
============================
bic r3, r3, #255
============================
str r3, [ip]
ldr r0, [r1, #4] @ unaligned
str r0, [sp, #24] @ unaligned
ldr r3, [sp, #24]
str r3, [ip, #4]
beq .L20
mov r1, #0
ldr r0, [sp, #332]
mov r2, r1
bl __cxa_atexit
----
it looks to me the two instructions
mov r2, #175
(mov r2, #0xAF)
and
bic r3, r3, #255
(bic r3, r3, 0xFF)
are correct (immediate value fits into 8 bits, rotate i would expect to be 0 in
both cases)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/24
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler,
Loria at phantasia dot org <=
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, nickc at redhat dot com, 2016/01/25
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/25
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, nickc at redhat dot com, 2016/01/26
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/26
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/26
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, nickc at redhat dot com, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/27
- [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler, Loria at phantasia dot org, 2016/01/28