This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH RFA] bfd/configure.in, bfd/configure


On Feb 17, 12:12pm, Ian Lance Taylor wrote:

>    +changequote(,)dnl
>    +  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
>    +changequote([,])dnl
>    +        COREFILE=rs6000-core.lo
>    +	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
>    +	;;
[...]
> Consider: is there any preprocessor macro defined on AIX that you can
> check for this, rather than relying on a configuration name match?

I looked for one, but saw nothing that I felt comfortable using.  (I
was hoping to see a macro which was only used by the new format, but
oddly enough there is nothing like this.  The old (pre-4.3) struct
user was renamed to struct user41 and some of the macros associated
with this structure were also renamed, but this does not seem like
something that I should rely on being there in future versions of
AIX.)

> The file rs6000-core.c is only compiled on an AIX target, so it is OK
> to check for AIX specific preprocessor macros, if there are any.
> 
> What should happen for aix5?

I don't know.  Given that the core file format changed in AIX 4.1 and
now again in 4.3, it seemed presumptuous to assume that the current
format will still be in use for AIX 5.*.  (I'm probably presuming too
much about AIX 4.4 thru 4.9!)

Kevin

-- 
Kevin Buettner
kev@primenet.com, kevinb@redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]