Bug 2143 - buildroot compiler generates segfaulting statically linked executables
Summary: buildroot compiler generates segfaulting statically linked executables
Status: VERIFIED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2010.05
Hardware: PC Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 22:13 UTC by Sander in 't Hout
Modified: 2010-07-08 08:04 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sander in 't Hout 2010-06-28 22:13:56 UTC
Hello,

I'm using buildroot 2010.05 (also tried latest git version). The target is i586.
All buildroot's settings are default (except for the architecture).

All statically linked executables generated by the buildroot's gcc compiler immediately segfault when they start.

I tried to compile Busybox, udev and sysvinit, but they all segfault.

When compiling dynamically linked, they all run fine.

My host OS is Fedora 13 x64 with all the latest updates installed.
Comment 1 Peter Korsgaard 2010-07-06 12:23:46 UTC
It's a GCC issues (BR32219) that gets triggered by uClibc 0.9.31. It has been worked around in uClibc since the release, and I have now integrated those fixes in git (e09aa6049323)
Comment 2 Sander in 't Hout 2010-07-08 08:04:28 UTC
(In reply to comment #1)
> It's a GCC issues (BR32219) that gets triggered by uClibc 0.9.31. It has been
> worked around in uClibc since the release, and I have now integrated those
> fixes in git (e09aa6049323)

Thanks for the fix!