This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH] PR gdb/21070: Build fix for MIPS with musl libc


On Mon, 23 Jan 2017, Maciej W. Rozycki wrote:

> > > This issue has been reported in crosstool-ng; the patch is from
> > > OpenEmbedded. Quoting the description from the patch:
> > > 
> > > [[[[
> > > The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
> > > but not by musl. Regardless of the libc, the kernel headers provide
> > > <asm/sgidefs.h> which provides the same definitions, so use that
> > > instead.
> > > ]]]]
> 
>  It's a bug in musl then, the header is a part of the MIPS/Linux user API.  
> OTOH <asm/sgidefs.h> is an internal kernel header and shouldn't really be 
> used by user software.

 NB the published API set out by SGI is actually <sys/asm.h> [1][2][3] 
rather than <sgidefs.h>, so if musl does the right thing via the former 
header then I'll be happy to accept a patch to switch.  Otherwise I'll be 
closing the bug as invalid.

References:

[1] "MIPSpro Compiling and Performance Tuning Guide", Silicon Graphics, 
    Inc., Document Number 007-2360-008, Section 6.3.2 "Using Predefined 
    Types", p. 135
    <http://techpubs.sgi.com/library/manuals/2000/007-2360-008/pdf/007-2360-008.pdf>

[2] "MIPSpro 64-Bit Porting and Transition Guide", Silicon Graphics, Inc.,
    Document Number 007-2391-006, Section "Using a Different Subrouting 
    Linkage", p. 45
    <http://techpubs.sgi.com/library/manuals/2000/007-2391-006/pdf/007-2391-006.pdf>

[3] "MIPSpro N32 ABI Handbook", Silicon Graphics, Inc., Document Number 
    007-2816-004, Section "Using a Different Subroutine Linkage", p. 22
    <http://techpubs.sgi.com/library/manuals/2000/007-2816-004/pdf/007-2816-004.pdf>

  Maciej


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