How to install gnu ld on mac os x 10.6?

As far as I can tell, GNU binutils does not support the Mach-O format. None of the documentation mentions it, and some Googling turns up some recent messages indicating that it is not supported. Now, you mention the Contiki OS, which looks to me like an embedded operating system. Are you needing to compile to … Read more

How to install gnu ld on mac os x 10.6?

As far as I can tell, GNU binutils does not support the Mach-O format. None of the documentation mentions it, and some Googling turns up some recent messages indicating that it is not supported. Now, you mention the Contiki OS, which looks to me like an embedded operating system. Are you needing to compile to … Read more

Override weak symbols in static library

This is a byproduct of the way that .a libraries work – they’re simply a collection of .o files. What happens at compile link time is that the first reference to the name gets resolved to the weak reference and the strong name never gets a look in. You can test this yourself by actually … Read more

linking arbitrary data using GCC ARM toolchain

The following example works for me: $ dd if=/dev/urandom of=binblob bs=1024k count=1 $ objcopy -I binary -O elf32-little binblob binblob.o $ file binblob.o binblob.o: ELF 32-bit LSB relocatable, no machine, version 1 (SYSV), not stripped $ nm -S -t d binblob.o 0000000001048576 D _binary_binblob_end 0000000001048576 A _binary_binblob_size 0000000000000000 D _binary_binblob_start I.e. no need to specify … Read more