This is the mail archive of the
gcc@gcc.gnu.org
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'.
Thanks,
Jason
How to use $Super$$ and $Sub$$ for patching data?:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15416.html
Using $Super$$ and $Sub$$ to patch symbol definitions:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0474c/Chdefdce.html
(the best list would have been gcc-help@gcc.gnu.org)
GNU ld has an option --wrap=symbol. Does that roughly match your need?
--
Marc Glisse