Re: How to group objects from static library in a section?



wyse03br@xxxxxxxxxxxx wrote:
What I am looking for is a way to extend the section attribute
attached to a routine to all its dependencies. There are some
compilers/linkers that allow that (CodeWarrior, but not using
attributes) and GNU linker seems to be equiped for that - there is a
call graph analysis done during --gc-section optimization.

Well, here you need an expert in your specific environment
and the guys that wrote the port of gnu "ld" to your environment.

I am not an expert in "ld" and I can't help you further. In
any case, compiling the libc library with all functions
including this attribute should work but that would be
a significant amount of work. Maybe better options exists.

Just ask to the gnu ld support people.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.



Relevant Pages

  • Re: Is there a relieable way to test for the Sun liinker ?
    ... I'm pretty sure the GNU linker would output somewhere 'GNU' if passed the option '--version', so I wrote test like this, which assumes the Sun linker, unless the ld command prints GNU if passed the option --version. ... I don't thinkg grepping on 'Solaris' would be reliable (it's possibly to configure the GNU linker to output Solaris at run time - I know there is an option in gcc to ouput some 'maintainer information'. ...
    (comp.unix.solaris)
  • Re: Is there a relieable way to test for the Sun liinker ?
    ... I'm pretty sure the GNU linker would output somewhere 'GNU' if passed ... Sun linker, unless the ld command prints GNU if passed the option --version. ... possibly to configure the GNU linker to output Solaris at run time - I ...
    (comp.unix.solaris)