Commit 50e7acb9 authored by Mark A. Greer's avatar Mark A. Greer Committed by Kevin Hilman

ARM: DaVinci - Put davinci_machine_no in same section as code using it

According the to GAS manual, the ARM 'adr' instruction can only
reference symbols that are in the same section as the code.
Unfortunately, there was a bug in GAS that didn't flag that as
an error and simply used the address of the 'adr' instruction
itself instead of the symbol.  That bug has been reported and
fixed upstream.

Now that GAS is fixed, the code needs to be fixed by keeping
__davinci_start() and davinci_machine_no in the same section.
Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 21ececb3
......@@ -13,7 +13,6 @@ __davinci_start:
adr r0, davinci_machine_no
str r7, [r0]
.text
.globl davinci_machine_no
davinci_machine_no:
.word 0x00000000
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment