This is the mail archive of the
mailing list for the GCC project.
Re: Subtyping support in GCC?
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jason Chagas <jason dot chagas at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 23 Mar 2016 16:44:30 +0100 (CET)
- Subject: Re: Subtyping support in GCC?
- Authentication-results: sourceware.org; auth=none
- References: <CAHbzz83s3X+evxoqPcV8G0gRJoWbyW=8XYrqNqfys9psUOWS6A at mail dot gmail dot com>
- Reply-to: gcc at gcc dot gnu dot org
On Wed, 23 Mar 2016, Jason Chagas wrote:
The the ARM compiler (armcc) provides a subtyping ($Sub/$Super)
mechanism useful as a patching technique (see links below for
details). Can someone tell me if GCC has similar support? If so, where
can I learn more about it?
FYI, before posting this question here, I researched the web
extensivelly on this topic. There seems to be some GNU support for
subtyping in C++. But I had no luck finding any information
specifically for 'C'.
How to use $Super$$ and $Sub$$ for patching data?:
Using $Super$$ and $Sub$$ to patch symbol definitions:
(the best list would have been firstname.lastname@example.org)
GNU ld has an option --wrap=symbol. Does that roughly match your need?