|
From: Benedict R. G. <ben...@su...> - 2003-05-15 16:16:03
|
hi, i am currently porting modutils-2.4.2 to sh64 Linux and have a question concerning the handling of relocations of instructions that are the destination of an shmedia branch. the problem i am having is how to determine when the relocation is to be included in an instruction that is an shmedia branch destination. if one looks at the code in dl-machine.h it calculates the value of the variable lsb, to be 1 or 0, by anding STO_SH5_ISA32 with the field st_other in the symbol structure (Elf32_Sym) being relocated and this result is then ored into the resulting value during the calculation the of relocation. --- it is a little strange that we are using the st_other field as this seems to be for symbol visibility! unfortunately unlike binutils and bfd the modutils does not use the bfd library, instead choosing to implement its own symbol structure (obj_symbol in obj.h) which does not contain a mapping to the symbol visibility. does any one have any ideas of what might be the best approach to solving this problem? ben. -- Benedict R. Gaster <ben...@su...> SuperH |