This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] add a --with-libelf configure option


2009/5/22 Joseph S. Myers <joseph@codesourcery.com>:
> On Fri, 22 May 2009, Eric Fisher wrote:
>
>> + ?# Check for ELF target.
>> + ?is_elf=no
>> + ?case "${target}" in
>> + ? ?*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
>> + ? ?| *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
>> + ? ?| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
>> + ? ? ?case "${target}" in
>> + ? ? ? ?*-*-linux*aout* | *-*-linux*oldld*)
>> + ? ? ? ? ?;;
>> + ? ? ? ?*)
>> + ? ? ? ? ?is_elf=yes
>> + ? ? ? ? ?;;
>> + ? ? ?esac
>> + ?esac
>
> This list of targets appears to be out of date and incomplete. ?GCC no
> longer supports *-*-sysv4* or *-*-unixware*, and *-*-linux*aout* and
> *-*-linux*oldld* are likewise detected in config.gcc as unsupported so you
> don't need to check for them here. ?*-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
> *-*-gnu*, *-*-kopensolaris*-gnu, *-*-rtems*, *-*-vxworks*, *-*-lynxos*,
> *-*-netware*, *-*-qnx*, ia64*-*-hpux*, s390x-ibm-tpf* are all ELF targets.
> *-*-uclinux* (not just FRV) are ELF at the .o file level, which is what
> matters here, even if later linked to FLT. ?Likewise *-*-symbianelf*.
> And some -none targets. ?Anything using elfos.h can be taken to be an ELF
> target, but some other targets are ELF targets as well.
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
>

Thanks. It looks a little difficult to me. I try to include all of the
elf targets according to the gcc/config.gcc. The macro is defined as,

# Check for ELF target.

AC_DEFUN([CHECK_ELF_TARGET], [
is_elf=no
case $target in
  *-*-eabi*                     \
  | *-*-elf*                    \
  | *-*-freebsd*                \
  | *-*-gnu*                    \
  | *-*-irix[56]*               \
  | *-*-kfreebsd*-gnu           \
  | *-*-knetbsd*-gnu            \
  | *-*-kopensolaris*-gnu       \
  | *-*-linux*                  \
  | *-*-lynxos*                 \
  | *-*-netbsd*                 \
  | *-*-netware*                \
  | *-*-openbsd*                \
  | *-*-rtems*                  \
  | *-*-solaris2*               \
  | *-*-symbianelf*             \
  | *-*-uclinux*                \
  | *-*-vxworks*                \
  | *-linux*                    \
  | *-rtems*                    \
  | bfin*-*                     \
  | crisv32-*-none              \
  | cris-*-none                 \
  | hppa*64*-*-hpux11*          \
  | i[34567]86-*-nto-qnx*       \
  | ia64*-*-hpux*               \
  | m68*-*-*                    \
  | mn10300-*-*                 \
  | s390x-*-tpf*                \
  | v850*-*-*                   \
  )
  is_elf=yes ;;
esac
])

OK?

Best wishes
Eric Fisher


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