Closed jkent closed 4 years ago
I'll merge the change, but I'm curious: do you know how this is getting defined in your setup?
Hi @phillipjohnston .. Currently I'm pulling in libc via cmake like so:
https://github.com/ARMWorks/neoboot/blob/wip/deps/CMakeLists.txt
I don't have a working project yet (lots of upbringing on my target boards, no JTAG :( ) but the code base is really small at this point
Got it. I took a brief look, you might need to set -nostdinc and -nostdlib flags to get rid of the compiler's versions. (Maybe that's done in the toolchain file?)
Thank you for the tip! Yeah, thats handled in the toolchain file. I didn't have -nostdinc :+1:
Description
Fixes re-declaration/warming for SIZE_MAX on aarch64 and other 64-bit targets. I thought about adding
SIZE_MAX
to the "__WORDSIZE
is 32 bits"else
section but I was concerned about support for < 32 bit targets.Type of change
How Has This Been Tested?
Compilation.