Thursday, May 20, 2010

使用TARGET_GLOBAL_LD_DIRS

在這個hack裡
http://go2.wordpress.com/?id=725X1342&site=xorl.wordpress.com&url=http%3A%2F%2Fwww.frasunek.com%2Fproto_ops.tgz&sref=http%3A%2F%2Fxorl.wordpress.com%2F2009%2F08%2F18%2Fcve-2009-2692-linux-kernel-proto_ops-null-pointer-dereference%2F

用了TARGET_GLOBAL_LD_DIRS
來用自己的linker script

Monday, May 17, 2010

__thread inside struct

忽然想到
如果__thread可以放到struct裡不就很刺激

小試了一下

26 struct test_t {
 27     int a;
 28     __thread int b;
 29 };

當然是會有compile error ......

Thursday, May 6, 2010

android build system

在combo/linux-arm.mk
default 是 build for  armv5te

另外在這makefile裡還有很多compiler flags

會找到這是因為要試試LOCAL_NO_DEFAULT_COMPILER_FLAGS=true
不然compile都會先找framework裡的header (無奈)