This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [RFC][PATCH 21/22] Add Makerules to build %.o and %.os from %.i8


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/


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