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

Bill Pringlemeir bpringle at sympatico.ca
Wed Oct 3 16:36:50 PDT 2012



On Tue, 02 Oct 2012, Bill Pringlemeir wrote:
 
> [klibc] [PATCH] fix ARM longjmp with zero 'val'.
 
On  3 Oct 2012, max at stro.at wrote:

> I hope you tested it beyond compilation?

> Hand applied due to whitespace "damaged" patch and pushed.
> Please double check me on latest klibc.git

[ on dev host...]
$ git checkout ac8f53aa182d6f423f1833e4bcc8d7d06adda03b
$ cat build.sh 
#!/bin/sh
export PATH=$PATH:/home/bpringlemeir/x-tools/arm-none-linux-gnueabi/bin

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 $*

$ ./build.sh && cp usr/utils/static/setjmp_test /srv/tftp/

[ on ARM...]
$ tftp -gr setjmp_test 172.0.0.133
$ ./setjmp_test
second
main 1
third
fourth 1

[back on dev host...]
$ git checkout master
$ git log -1 --pretty="%s"
[klibc] [PATCH] fix ARM longjmp with zero 'val'.
$ ./build.sh && cp usr/utils/static/setjmp_test /srv/tftp/

[ on ARM...]
$ tftp -gr setjmp_test 172.0.0.133
$ ./setjmp_test
second
main 123

I tried to do a 'git format-patch' on other projects, but when I pull my
patch from the master project, my history starts to look very bizarre.
I just did a 'git diff' and attached that to my mail.  Is a 'git
format-patch' the right way to do this?

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)?  I compile without OABI
support at all.  Is there any klibc 'structure' (perl, etc) to parse the
'.config' in the linux build directory?

Regards,
Bill Pringlemeir.

-- 
Yow!  Legally-imposed CULTURE-reduction is CABBAGE-BRAINED!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: setjmp_test.c
Type: text/x-csrc
Size: 891 bytes
Desc: setjmp test file
URL: <http://www.zytor.com/pipermail/klibc/attachments/20121003/97214c75/attachment.bin>


More information about the klibc mailing list