This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

gcc put a address into a data word

Note: This was originally posted on 2nd July 2011 at http://forums.arm.com

Hi.

I'm trying to build a jump table, but I do not succed to declare the table
for example

.label1:
...
...

.label2:
...
...


.label3:
...
...

.jump_table
word .label1
word .label2
word .label3


gcc are not happy with "word .label1"

how can I declare that the address of .label1 is in the first word of .jump_table ?

Thank's
0