qnx-nto elf backend

Graeme Peterson gp@qnx.com
Tue Jul 30 14:02:00 GMT 2002


Hi, all.

The elf bfd backend functions I added for i386qnx need to be
farmed out and made available for all qnx nto targets.

I have declared three functions, a macro, and defined the
following in elf32-i386qnx.c:

 #define elf_backend_set_nonloadable_filepos elf_i386qnx_set_nonloadable_filepos
 #define elf_backend_is_contained_by_filepos elf_i386qnx_is_contained_by_filepos
 #define elf_backend_copy_private_bfd_data_p elf_i386qnx_copy_private_bfd_data_p

What I want is to put them in a common file, rename them from
"elf_i386qnx_*" to "elf_qnx*", and then include that common
file in elf32-i386qnx.c and elfarmqnx-nabi.c, and define the 
functions as:

 #define elf_backend_set_nonloadable_filepos elf_qnx_set_nonloadable_filepos
 #define elf_backend_is_contained_by_filepos elf_qnx_is_contained_by_filepos
 #define elf_backend_copy_private_bfd_data_p elf_qnx_copy_private_bfd_data_p


Questions:
==========

- Should I make the definitions in the common file, or in each of the
  elf_*qnx*.c files?  I tend toward the latter, in case there is any
  divergence in the future.

- Should the common file be a C file or a header file?  I tend towards
  a C file for debugging reasons.

Thanks in advance.
GP



More information about the Binutils mailing list