public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fw: New port: CRX
@ 2004-07-08  8:35 Tomer Levi
  2004-07-09  0:40 ` Ben Elliston
  0 siblings, 1 reply; 2+ messages in thread
From: Tomer Levi @ 2004-07-08  8:35 UTC (permalink / raw)
  To: nickc; +Cc: binutils

Hi Nick,

> There are a couple of features which I hope that you will be submitting 
> in the future:
>   * Support in GAS for evaluating the difference between two symbols 
> which are defined in the same section.  (Lack of this support is causing 

> 3 unexpected failures in the GAS testsuite).

Actually, i added this kind of support (originally for switch tables), 
but then left it outside the patch, since i haven't tested it heavily.

It seems to me that LD should do most of the work, since the difference 
between 
two symbols is like to change due to Linker's relaxation.

I have decided to attack this problem as following (haven't found another 
architecture that do the same) :
*** GAS forces a relocation entry for such cases and saves the difference 
as an Addend.
*** When LD deletes some bytes from a section while relaxing (function 
'*_relax_delete_bytes'), 
it adjusts the symbols defined in this section. If the address (from where 
we delete the bytes) is between 
the two symbols, the difference between the symbols (that is, the Addend) 
is updated accordingly.
*** When relocation is performed (function '*__final_link_relocate'), the 
Addend is written to file.

I've tested this on switch tables, where the code between two subtracted 
symbols 
was relaxed (hence reduced), and it seems to work fine.

Are you familiar with simpler ways to deal with this problem ?

And before i finish, a technical question for you :
Do i need to get your (that is, Binutils people) approval for changes made 
in my port, 
or am i permitted to commit them freely, and only send a patch to the 
Binutils mailing-list ?

Regards,
      Tomer Levi

Software Engineer                                   phone: 
+49-8141-35-1378
CompactRISC Development Tools  fax:        +49-8141-35-11-1378
National Semiconductor GmbH         mailto:Tomer.Levi@nsc.com
Livry-Gargan Str. 10                                internet: 
http://www.national.com
82256 Fuerstenfeldbruck, Germany

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fw: New port: CRX
  2004-07-08  8:35 Fw: New port: CRX Tomer Levi
@ 2004-07-09  0:40 ` Ben Elliston
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2004-07-09  0:40 UTC (permalink / raw)
  To: binutils

"Tomer Levi" <Tomer.Levi@nsc.com> writes:

> Do i need to get your (that is, Binutils people) approval for
> changes made in my port, or am i permitted to commit them freely,
> and only send a patch to the Binutils mailing-list ?

If you're a port maintainer (which I see you are, for CRX) then you
can commit port fixes freely.  This excludes changes to common parts
of the binutils--these require explicit approval.

You should still post your patches, however.

Ben


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-09  0:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-08  8:35 Fw: New port: CRX Tomer Levi
2004-07-09  0:40 ` Ben Elliston

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).