[RFC][PATCH 21/22] Add Makerules to build %.o and %.os from %.i8
Gary Benson
gbenson@redhat.com
Wed Oct 21 17:54:00 GMT 2015
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/
More information about the Libc-alpha
mailing list