* binutils: regression on kernel builds
@ 2012-12-10 11:48 Enrico Scholz
2012-12-10 19:11 ` Khem Raj
2012-12-12 9:23 ` Martin Jansa
0 siblings, 2 replies; 5+ messages in thread
From: Enrico Scholz @ 2012-12-10 11:48 UTC (permalink / raw)
To: openembedded-core
Hi,
with recent binutils, kernel build fails with
| arm-linux-gnueabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown CPU architecture
I am able to reproduce it with
$ > /tmp/x.s
$ arm-linux-gnueabi-as -march=armv7-a -march=all -o x0.o /tmp/x.s
$ arm-linux-gnueabi-as -march=armv7-a -o x1.o /tmp/x.s
$ arm-linux-gnueabi-ld.gold x0.o x1.o
arm-linux-gnueabi-ld: error: x1.o: unknown CPU architecture
$ arm-linux-gnueabi-ld.bfd x0.o x1.o
arm-linux-gnueabi-ld.bfd: warning: cannot find entry symbol _start; defaulting to 0000000000008034
(kernel sets '-Wa,-march=all' when building piggy.gzip.o)
This works fine with binutils 2.22 and when using the BFD linker.
Enrico
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: binutils: regression on kernel builds
2012-12-10 11:48 binutils: regression on kernel builds Enrico Scholz
@ 2012-12-10 19:11 ` Khem Raj
2012-12-12 9:23 ` Martin Jansa
1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2012-12-10 19:11 UTC (permalink / raw)
To: Enrico Scholz; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
yes gold is showing some regressions see another one here
http://sourceware.org/bugzilla/show_bug.cgi?id=14592
cant promise but will take a look. meanwhile if you can triage
it would be nice.
On Mon, Dec 10, 2012 at 3:48 AM, Enrico Scholz <
enrico.scholz@sigma-chemnitz.de> wrote:
> Hi,
>
> with recent binutils, kernel build fails with
>
> | arm-linux-gnueabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o:
> unknown CPU architecture
>
> I am able to reproduce it with
>
> $ > /tmp/x.s
> $ arm-linux-gnueabi-as -march=armv7-a -march=all -o x0.o /tmp/x.s
> $ arm-linux-gnueabi-as -march=armv7-a -o x1.o /tmp/x.s
> $ arm-linux-gnueabi-ld.gold x0.o x1.o
> arm-linux-gnueabi-ld: error: x1.o: unknown CPU architecture
> $ arm-linux-gnueabi-ld.bfd x0.o x1.o
> arm-linux-gnueabi-ld.bfd: warning: cannot find entry symbol _start;
> defaulting to 0000000000008034
>
>
> (kernel sets '-Wa,-march=all' when building piggy.gzip.o)
>
>
> This works fine with binutils 2.22 and when using the BFD linker.
>
>
>
> Enrico
>
[-- Attachment #2: Type: text/html, Size: 1694 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: binutils: regression on kernel builds
2012-12-10 11:48 binutils: regression on kernel builds Enrico Scholz
2012-12-10 19:11 ` Khem Raj
@ 2012-12-12 9:23 ` Martin Jansa
2012-12-12 13:01 ` Enrico Scholz
1 sibling, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-12-12 9:23 UTC (permalink / raw)
To: Enrico Scholz; +Cc: openembedded-core
On Mon, Dec 10, 2012 at 12:48 PM, Enrico Scholz
<enrico.scholz@sigma-chemnitz.de> wrote:
> Hi,
>
> with recent binutils, kernel build fails with
>
> | arm-linux-gnueabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown CPU architecture
>
> I am able to reproduce it with
>
> $ > /tmp/x.s
> $ arm-linux-gnueabi-as -march=armv7-a -march=all -o x0.o /tmp/x.s
> $ arm-linux-gnueabi-as -march=armv7-a -o x1.o /tmp/x.s
> $ arm-linux-gnueabi-ld.gold x0.o x1.o
> arm-linux-gnueabi-ld: error: x1.o: unknown CPU architecture
> $ arm-linux-gnueabi-ld.bfd x0.o x1.o
> arm-linux-gnueabi-ld.bfd: warning: cannot find entry symbol _start; defaulting to 0000000000008034
>
>
> (kernel sets '-Wa,-march=all' when building piggy.gzip.o)
>
>
> This works fine with binutils 2.22 and when using the BFD linker.
You need to patch your kernel sources, some examples for different
kernel versions (please ignore incorrect commit message)
https://github.com/shr-distribution/linux/commit/e465ff7527fb085b4854b0e68aa6bc592229bf43
https://github.com/shr-distribution/linux/commit/627c638794d61c27858d6220cf55c27c74dc9450
https://github.com/shr-distribution/linux/commit/37b0bacc00e81811dc113265a9ef826fe9aab788
https://github.com/shr-distribution/linux/commit/ec1ac589d49081286164246fbaaba0012ae7ecac
Cheers,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: binutils: regression on kernel builds
2012-12-12 9:23 ` Martin Jansa
@ 2012-12-12 13:01 ` Enrico Scholz
2012-12-12 13:29 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Enrico Scholz @ 2012-12-12 13:01 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
Martin Jansa <martin.jansa@gmail.com> writes:
>> | arm-linux-gnueabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown CPU architecture
>> ...
>> This works fine with binutils 2.22 and when using the BFD linker.
>
> You need to patch your kernel sources, some examples for different
> kernel versions (please ignore incorrect commit message)
I am not sure who (gold linker or kernel) is the responsible party. But
based on my experiences with low level programs (e.g. bootloaders and
kernel) which are having serious problems with the gold linker, I set
for now
| KERNEL_LDSUFFIX = .bfd
Enrico
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-12 13:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 11:48 binutils: regression on kernel builds Enrico Scholz
2012-12-10 19:11 ` Khem Raj
2012-12-12 9:23 ` Martin Jansa
2012-12-12 13:01 ` Enrico Scholz
2012-12-12 13:29 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox