]> xenbits.xensource.com Git - people/julieng/boot-wrapper-aarch64.git/commit
Add GCC library functions
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Thu, 17 Dec 2015 14:59:46 +0000 (14:59 +0000)
committerMark Rutland <mark.rutland@arm.com>
Wed, 15 Jun 2016 09:27:35 +0000 (10:27 +0100)
commit5714dbb8b62ac25f336e5256dcc2fd8fe7c37b1b
treeb951ea36df5e0977e6bf2e3ee31467d2c5b5fbd4
parentf730ba47d27c6f56dd9cc2c86cf895303ff0d8d6
Add GCC library functions

GCC might generate implicit calls to standard functions, for example
memcpy when copying a struct. Implement these functions upfront, to
ensure that GCC never uses some optimized version, which could do
unaligned device memory accesses. We only implement memcpy and memset
for the moment. The others (memmove, memcmp, ...) can be added in the
future if required.

We also add flags "-ffunction-sections", "-fdata-sections" to GCC, and
"--gc-sections" to ld, in order to avoid linking those functions into
the final image when they aren't used.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Makefile.am
lib.c [new file with mode: 0644]
model.lds.S