This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: abi-variants question
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Steve Ellcey <sellcey at mips dot com>
- Cc: libc-help at sourceware dot org
- Date: Wed, 3 Oct 2012 15:53:48 -0400
- Subject: Re: abi-variants question
- References: <1ea75350-005e-4fbb-b7ed-4000b75c5b00@EXCHHUB01.MIPS.com>
On Tue, Oct 2, 2012 at 7:09 PM, Steve Ellcey <sellcey@mips.com> wrote:
>
> While building various mips versions of glibc I found that the stubs files
> for soft-float builds is different then for hard-float builds. Right now
> we have (in ports/sysdeps/unix/sysv/linux/mips/Makefile):
>
> abi-variants := o32 n32 n64
>
> So I changed it to
>
> abi-variants := o32_soft o32_hard n32_soft n32_hard n64_soft n64_hard
>
> and added the necessary options and condition settings. I get the
> gnu/stubs.h file that I expected:
>
> #if defined(__mips_soft_float) && (_MIPS_SIM == _MIPS_SIM_ABI32)
> # include <gnu/stubs-o32_soft.h>
> #endif
> #if defined(__mips_hard_float) && (_MIPS_SIM == _MIPS_SIM_ABI32)
> # include <gnu/stubs-o32_hard.h>
> #endif
> #if defined(__mips_soft_float) && (_MIPS_SIM == _MIPS_SIM_NABI32)
> # include <gnu/stubs-n32_soft.h>
> #endif
> #if defined(__mips_hard_float) && (_MIPS_SIM == _MIPS_SIM_NABI32)
> # include <gnu/stubs-n32_hard.h>
> #endif
> (etc)
>
> But I didn't get the actual stubs-o32_soft.h header file that I expected.
> Instead of stubs-o32_soft.h and stubs-o32_hard.h, I still get stubs-o32.h.
> Is there a configure file or Makefile that I need to regenerate with
> autoconf or automake? Is there code somewhere else that needs to be
> changed in conjunction with the Makefile change?
You shouldn't need to regenerate anything.
The installed stub file is defined in Makefile, which always
installs the default ABI stub file e.g. stubs-$(default-abi).h.
Which for MIPS is o32. Did you break the selection of the appropriate
MIPS-specific Makefile which sets default-abi?
Cheers,
Carlos.