Project Idea
Douglas Paul
doug at bogon.ca
Mon Aug 28 17:16:36 PDT 2017
Hello,
On Sun, Feb 26, 2017 at 11:43:51AM -0500, Ralph Siemsen wrote:
> On Sun, Feb 12, 2017 at 09:59:33PM -0800, Daniel Gimpelevich wrote:
> >
> > Lately, I've been thinking about finally doing something from my
> > NetWinder TODO list of _eleven_ years ago next month. What you already
> > did with Gentoo and gcc was certainly on it, so it would be great if you
> > could post that somewhere.
>
> I'm not sure what Douglas did for Gentoo, but I did similar experiment
> back in late 2015. I was able to cross-compile a working image using
> gcc-4.8. It took some effort, because many spots needed to be patched
> to use the linker option "--fix-v4bx". For the kernel I used 3.18.6.
Sorry for taking so long, I just noticed this mail. In fact, it looks like
what I ended up doing was basically the same thing, and the patch was not
very complicated at all. I tracked down my original patch, and it was
against the 4.4 series of GCC. I believe I ended up configuring for
"armv4l-softfloat-linux-gnueabi". Here is the patch:
--- gcc-4.4.4/gcc/config/arm/linux-eabi.h 2011-03-18 05:28:12.000000000 -0400
+++ gcc-4.4.4/gcc/config/arm/linux-eabi.h 2011-03-18 05:36:50.674639003 -0400
@@ -56,7 +56,8 @@
#endif
#undef SUBTARGET_EXTRA_LINK_SPEC
-#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION \
+ TARGET_FIX_V4BX_SPEC
/* Use ld-linux.so.3 so that it will be possible to run "classic"
GNU/Linux binaries on an EABI system. */
--- gcc-4.4.5/gcc/config.gcc~ 2010-06-13 18:16:50.000000000 -0400
+++ gcc-4.4.5/gcc/config.gcc 2011-04-01 16:46:42.857927370 -0400
@@ -718,6 +718,9 @@
esac
tmake_file="${tmake_file} t-linux arm/t-arm"
case ${target} in
+ armv4l-*)
+ with_arch=${with_arch:-armv4}
+ ;&
arm*-*-linux-*eabi)
tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
--
Douglas Paul
More information about the Netwinder
mailing list