diff options
author | Haavard Skinnemoen | 2006-11-18 17:32:31 +0100 |
---|---|---|
committer | Haavard Skinnemoen | 2007-04-14 15:20:27 +0200 |
commit | 28c699ef69f4b6cdf252e4747b7b590028a88981 (patch) | |
tree | 32dd77d4e89a41a683fa1dad36d6cd858df6f2aa /avr32_config.mk | |
parent | 5374b36de91d006d1df9536259fa9f66b01aa3aa (diff) |
AVR32: Build position-independent u-boot
Add -fPIC -mno-init-got to the avr32-specific CFLAGS to make u-boot
position independent. This will make relocation a lot easier.
-mno-init-got means that gcc shouldn't emit code to load the GOT
address into r6 in every function prologue. We do it once and for
all in the early startup assembly code, so enabling this option
makes u-boot a bit faster and smaller.
The assembly parts have always been position-independent, so no code
changes should be necessary.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'avr32_config.mk')
-rw-r--r-- | avr32_config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avr32_config.mk b/avr32_config.mk index 0b92053e1af..441caa405ae 100644 --- a/avr32_config.mk +++ b/avr32_config.mk @@ -21,5 +21,5 @@ # MA 02111-1307 USA # -PLATFORM_RELFLAGS += -ffixed-r5 -mno-pic -mrelax +PLATFORM_RELFLAGS += -ffixed-r5 -fPIC -mno-init-got -mrelax PLATFORM_LDFLAGS += --relax |