This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH 21/22] Add Makerules to build %.o and %.os from %.i8
- From: Gary Benson <gbenson at redhat dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 21 Oct 2015 18:54:26 +0100
- Subject: Re: [RFC][PATCH 21/22] Add Makerules to build %.o and %.os from %.i8
- Authentication-results: sourceware.org; auth=none
- References: <1445352975-17844-1-git-send-email-gbenson at redhat dot com> <1445352975-17844-22-git-send-email-gbenson at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1510201525580 dot 7944 at digraph dot polyomino dot org dot uk> <20151021082814 dot GC13381 at blade dot nx> <alpine dot DEB dot 2 dot 10 dot 1510211202440 dot 11233 at digraph dot polyomino dot org dot uk> <20151021150015 dot GB18821 at blade dot nx> <alpine dot DEB dot 2 dot 10 dot 1510211546180 dot 15989 at digraph dot polyomino dot org dot uk>
Joseph Myers wrote:
> On Wed, 21 Oct 2015, Gary Benson wrote:
> > Joseph Myers wrote:
> > > Not without these directives on ARM.
> >
> > Yuck. Is there any generic way of obtaining the required
> > directives for the host system? Can I obtain them from GCC
> > somehow? I saw that
>
> I don't think so (though the required directives on ARM are
> constant, not varying between the supported ABI variants).
I think I figured out a way of getting the stuff out of GCC.
This command:
echo -n | gcc -S -x c - -o - | grep -v '\.\(file\|ident\|section\)'
gives me some useful-looking output on the only ARM box I have.
So for standalone I8C I'll try doing something equivalent to
generate the required directives. Probably a little hacky, but...
For GLIBC I'll add an option to suppress the automatic preamble
discovery and use -include to suck in sysdeps.h to make sure
I'm getting it exactly right for whatever target is in use.
Thanks for your help,
Gary
--
http://gbenson.net/