This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Generating data at link time
- From: Andrew Pinski <pinskia at gmail dot com>
- To: YU Chenkan <cyuaa at ust dot hk>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sat, 1 Jun 2013 18:57:17 -0700
- Subject: Re: Generating data at link time
- References: <10826 dot 115 dot 198 dot 247 dot 68 dot 1370134784 dot squirrel at sqmail dot ust dot hk>
On Sat, Jun 1, 2013 at 5:59 PM, YU Chenkan <cyuaa@ust.hk> wrote:
> Dear all,
>
> I'm trying to generate a (very simple) special data section at
> link-time. It seems that LTO is too heavy, though I'm also not quite
> familiar with it.
>
> I think that what I first need is a new output format which wraps the
> standard ELF, so can anyone help to point out where I can get started?
>
> Also if I want to generate data, is there any tool lighter than and
> compatible with GCC can be used to deal with the platform dependent
> stuff?
What kind of data section? Could you use a plugin with the linker
(GNU ld supports plugins) which creates that?
Thanks,
Andrew Pinski