[klibc] [PATCH] fix ARM longjmp with zero 'val'.

Thorsten Glaser tg at mirbsd.de
Thu Oct 4 00:27:20 PDT 2012


Bill Pringlemeir dixit:

>make CROSS_COMPILE=arm-none-linux-gnueabi-
>KLIBCREQFLAGS='-mabi=aapcs-linux' ARCH=arm CPU_ARCH=armv5te
>CPU_TUNE=arm926ej-s KLIBCKERNELSRC=/home/src/linux/source
>KLIBCKERNELOBJ=/home/src/linux $*

>I just did a 'git diff' and attached that to my mail.  Is a 'git
>format-patch' the right way to do this?

Actually, 'git format-patch -s'. If you just want to do it for the
top (last commit), 'git format-patch -s HEAD^' is right. Then add
a To: header to the file and mail it out, for example like this:

(echo 'To: klibc at zytor.com'; git format-patch -s HEAD^) | sendmail -oem -oi -t

>I need the '-mabi=aapcs-linux' as per the thumb target.  Otherwise, it
>is using 'apcs-gnu'.  It keeps dying in _start, without this option.  Is
>this dependant on the kernel config (OABI,EABI)?

Yes, except it doesn’t really use the kernel config, only its
config system. The correct thing to do is to set the flag for
thumb to y, possibly on the command line. The Debian package,
for example, for armhf does this:

make ARCH=arm CONFIG_AEABI=y CPU_ARCH=armv7-a CPU_TUNE=cortex-a8 \
    CONFIG_KLIBC_THUMB=y INSTALLROOT=debian/tmp […]

Note that thumb was broken until last weekend.

bye,
//mirabilos
-- 
<Natureshadow> Dann mach ich git annex copy --to shore und fertig ist das
<Natureshadow> das ist ja viel cooler als ownCloud ...
<mirabilos> sag ich doch
<Natureshadow> ja wieso stimmt das denn immer was du sagst ...



More information about the klibc mailing list