|
|
Hi Joseph,
+#undef SUBTARGET_EXTRA_LINK_SPEC
+#define SUBTARGET_EXTRA_LINK_SPEC "-m armelf_linux_eabi"
Although I haven't tested with this patch version, note that the
definition of SUBTARGET_EXTRA_LINK_SPEC in linux-elf.h starts with a
space, " -m armelf_linux -p" (since SUBTARGET_EXTRA_LINK_SPEC goes at the
end of LINK_SPEC immediately after "%{mbig-endian:-EB}"). If this is
indeed a problem for mainline and the space needs adding for the EABI
version, the test would be linking with -mbig-endian passing a
concatenated -EB-m argument to the linker.
Nice catch! I was able to produce the "-EB-m" argument with
-mbig-endian. Fixed in my local tree.
Kazu Hirata
|
|