Skip to contentSkip to conversation

relocatable switch - case

Linux-ia64 Christian Hildner 1 participant 1 message Mar 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

does anybody here know how to force gcc to compile a switch statement to position independend, fully relocatable code that uses mov rx=ip to get the address of the switch-table/program address. I only found solutions where the address is loaded via gp (which is not suitable for me).

Any help is appreciated.

Christian