This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
bfd porting
- To: binutils at sourceware dot cygnus dot com
- Subject: bfd porting
- From: Laurent Pinchart <laurent dot pinchart at capflow dot com>
- Date: Wed, 21 Mar 2001 11:12:17 +0100
- References: <3AB7A008.3040706@capflow.com> <01032021271400.00298@peter_pan> <p03dc8yv2o.fsf@elmo.cygnus.com> <01032023151805.00298@peter_pan> <p0lmq0xbob.fsf@elmo.cygnus.com>
- Reply-To: laurent dot pinchart at capflow dot com
Trying to port the bfd library for the TI tms320c6000 target, I
encountered the following problem with the following bit of the
external_auxent structure.
union
{
struct
{
char x_lnno[2]; /* declaration line number */
char x_size[2]; /* str/union/array size */
} x_lnsz;
char x_fsize[4]; /* size of function *
} x_misc;
TI replaced x_size[2] by x_size[4], and reomved the x_lnno field in the
x_lnsz structure for str/union/array descriptions. I can easily get
around this custom GET_LNSZ_LNNO and GET_LNSZ_SIZE macros, but there's
still another problem.
The internal_auxent structure codes x_lnno and x_size as unsigned short
integers (16 bits on i386), and thus the x_size field of the
internal_auxent structure can't contain the x_size field of the
external_auxtent structure.
Could anyone help me with that ?
Thanks in advance.
Laurent Pinchart