| Submitter | Martin Ertsaas |
|---|---|
| Date | April 30, 2012, 6 a.m. |
| Message ID | <4F9E2A64.6040302@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/26585/ |
| State | Rejected |
| Headers | show |
Comments
On Sun, Apr 29, 2012 at 11:00 PM, Martin Ertsås <martiert@gmail.com> wrote:
> Sure, the patches are attached.
these patches are not right. Drop the eglibc patches completely they are bogus
gcc patch you can take a look here
http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/misc&id=7cc84a60662f9f2f5a1ad0264e94cea8a6954cec
eglibc patches are still work in progress. I am working on something
but its not final yet
Patch
# DP: For ARM hard float, set the dynamic linker to # DP: /lib/ld-linux-armhf.so.3. diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h index 80bd825..8c9d2e7 100644 --- a/gcc/config/arm/linux-eabi.h +++ b/gcc/config/arm/linux-eabi.h @@ -62,7 +62,11 @@ /* Use ld-linux.so.3 so that it will be possible to run "classic" GNU/Linux binaries on an EABI system. */ #undef GLIBC_DYNAMIC_LINKER -#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.3" +#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" +#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" +#define GLIBC_DYNAMIC_LINKER \ + "%{mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_HARD_FLOAT "} \ + %{!mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "}" /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to use the GNU/Linux version, not the generic BPABI version. */