This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
qnx-nto elf backend
- From: "Graeme Peterson" <gp at qnx dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 30 Jul 2002 16:48:15 -0400 (EDT)
- Subject: qnx-nto elf backend
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