porting gas, which bfd backend functions must be implemented?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

porting gas, which bfd backend functions must be implemented?

free.jesse
hi,
if only porting gas, besides writting tc-foo.c, which
bfd target vector functions and bfd backend functions
in elf32-foo.c must be implemented?  

      best wishes.
      jesse

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
Reply | Threaded
Open this post in threaded view
|

Re: porting gas, which bfd backend functions must be implemented?

Ian Lance Taylor
"free.jesse" <[hidden email]> writes:

> if only porting gas, besides writting tc-foo.c, which
> bfd target vector functions and bfd backend functions
> in elf32-foo.c must be implemented?  

To port gas, you only need the backend vectors which are used to write
a file.  You don't need the ones used to read a file.  In general, you
need BFD_JUMP_TABLE_GENERIC, bfd_reloc_type_lookup,
BFD_JUMP_TABLE_WRITE.

Ian