From: Nick Clifton <nickc@redhat.com>
To: Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
Cc: richard.earnshaw@arm.com, paul@codesourcery.com, gcc-patches@gcc.gnu.org
Subject: Re: RFC: ARM: Add comment enumerating emitted .eabi_attribute tags
Date: Tue, 27 Sep 2011 17:17:00 -0000 [thread overview]
Message-ID: <4E81FE66.5000206@redhat.com> (raw)
In-Reply-To: <CACUk7=ULgCbe2VTvvznZbN+s8qR=C0i35T=VUJJ_5FyMnhEzng@mail.gmail.com>
Hi Ramana,
>> +/* Get the definitions of the ARM EABI Attribute tag values. */
>> +#define BFD_ARCH_SIZE
>> +#include "elf/arm.h"
>
> Defining BFD_ARCH_SIZE appears to be a bit of a hack. I would also
> ifdef this inclusion on TARGET_AAPCS since we shouldn't really be
> caring about object attributes for non AAPCS configurations.
Hmm, there does not appear to be any compile-time define that I can
reliably use for this.
> Does elf/arm.h get installed by bfd / binutils in some form as a part
> of it's build process ? Can the compiler find elf/arm.h by default for
> a non-combined-tree arm-linux-gnueabi / arm-eabi cross-build or a
> native boostrap ?
Err, probably not. I forgot that the elf/ subdirectory of the include/
directory is not shared between gcc and binutils.
> Instead may I suggest rejigging this in a form so that we share this
> header file between gcc and binutils and make sure that this is
> sufficiently documented that one master copy lives in one repository
> while the other is a copy of this is in the other repository ?
This would be a good idea.
> It
> has the same problems that we have with sharing other files between
> these 2 repositories but causing pain to every single script out there
> to add an include path to a default build sounds wrong to me.
Agreed.
I think that there are two possible ways to go:
1. Create a new file include/arm-eabi-attrs.h to be shared between gcc
and binutils and alter include/elf/arm.h to use this file. The problem
with this idea is that it adds a target specific file to the include/
directory, which really should be target agnostic. (I know that there
are some xtensa header files there, but IMHO that was a mistake).
2. Abandon using a header file at all. Instead use a configure test
to see if we are using an assembler that supports textual names in a
.eabi_attribute directive and if so use the names rather than the numbers.
Any preference ?
Cheers
Nick
next prev parent reply other threads:[~2011-09-27 16:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 15:51 Nick Clifton
2011-09-27 16:47 ` Ramana Radhakrishnan
2011-09-27 16:58 ` Paul Brook
2011-09-27 17:01 ` Ramana Radhakrishnan
2011-09-27 17:17 ` Nick Clifton [this message]
2011-09-27 18:19 ` Paul Brook
2011-09-27 16:49 ` Richard Henderson
2011-09-27 17:23 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E81FE66.5000206@redhat.com \
--to=nickc@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=paul@codesourcery.com \
--cc=ramana.radhakrishnan@linaro.org \
--cc=richard.earnshaw@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).