Re: The Extension to ELF

2012-08-08 Thread Fumiaki Isoya
> > How is the idea of adopting it as the standard format of GNU Hurd? > > I have no opinion on this. Note though that these complex relocations > are encoded within a standard ELF file (merely using separate > relocation-type and symbol-type codes). There is no need for an > OS/kernel to suppor

Re: The Extension to ELF

2012-08-08 Thread Frank Ch. Eigler
Fumiaki Isoya writes: >> It may interest you to know that, for an older Cygnus project (mep), >> we implemented a facility called computed/complex relocations, as an >> ELF extension. This is a way of encoding general symbol/arithmetic >> expressions to be evaluated at link time and substituted

Re: The Extension to ELF

2012-08-08 Thread Fumiaki Isoya
> It may interest you to know that, for an older Cygnus project (mep), > we implemented a facility called computed/complex relocations, as an > ELF extension. This is a way of encoding general symbol/arithmetic > expressions to be evaluated at link time and substituted into the > binary output.

Re: The Extension to ELF

2012-08-08 Thread Frank Ch. Eigler
Hi - On Wed, Aug 08, 2012 at 06:23:52AM -0700, Ian Lance Taylor wrote: > [...] > > This has been merged into gnu binutils some time ago, though is not > > widely known, and only used by a single cgen-based gas port. See the > > OBJ_COMPLEX_RELC conditionals in gas/*, the BSF_*RELC/STT_RELC logic

Re: The Extension to ELF

2012-08-08 Thread Ian Lance Taylor
On Wed, Aug 8, 2012 at 4:23 AM, Frank Ch. Eigler wrote: > Ian Lance Taylor writes: > >> [...] >> ELF is designed to permit fast program loading at runtime, and to >> permit fast linking. Changing symbol and relocation values to take >> general expressions works against that goal. >> [...] > > It

Re: The Extension to ELF

2012-08-08 Thread Frank Ch. Eigler
Ian Lance Taylor writes: > [...] > ELF is designed to permit fast program loading at runtime, and to > permit fast linking. Changing symbol and relocation values to take > general expressions works against that goal. > [...] It may interest you to know that, for an older Cygnus project (mep), w

Re: The Extension to ELF

2012-08-08 Thread Fumiaki Isoya
> ELF is designed to permit fast program loading at runtime, and to > permit fast linking. Changing symbol and relocation values to take > general expressions works against that goal. > I'm sure it is possible to improve on ELF in various ways. However, > ELF is pretty good. I very strongly re

Re: The Extension to ELF

2012-08-07 Thread Ian Lance Taylor
On Tue, Aug 7, 2012 at 10:38 PM, Fumiaki Isoya wrote: >> I suspect we should make decision of solving all symbols by the >> calculation. That is, all symbols should be solved by the >> calculation of the information that stored in Reverse Polish which >> consists of constants, other symbols, and

The Extension to ELF

2012-08-07 Thread Fumiaki Isoya
I'd just sent mail to r...@gnu.org and he replied. > I know nothing abnout ELF format, and I have not worked on GCC since > 1991. Thus, I simply am not in a position to judge the merits of your > suggestion. How about writing to g...@gnu.org, which is the discussion > list for GCC? My original