Hi Jian,
But how to remove the unused functions in system library(maybe compile
the system library without --funciton-sections) when linking program.
Short Answer: It cannot be done.
Long Answer:
If you are linking against a *shared* library then you will not be able
to remove any functions
--- Additional Comments From eric dot weddington at atmel dot com
2008-06-02 16:37 ---
Patch fixes bug on real-world application.
Thanks, Nick!
--
What|Removed |Added
Dear Nick,
I see, thank you so much.
Best regards
2008-06-02
jian
发件人: Nick Clifton
发送时间: 2008-06-02 16:32:40
收件人: jian
抄送: bug-binutils
主题: Re: Ask for helping about LD linker
Hi Jian,
> But how to remove the unused functions in system library(maybe compile
> the system librar
Dear Nick,
Thanks for your advice,It works well according to your advice.
But how to remove the unused functions in system library(maybe compile the
system library without --funciton-sections) when linking program.
Best regards.
2008-06-02
jian
发件人: Nick Clifton
发送时间: 2008-06-02 15:08:
--- Additional Comments From kris dot van dot hees at oracle dot com
2008-06-02 18:47 ---
Verified to be reproducible on my system. I'm currently looking into this
problem.
--
What|Removed |Added
-
--- Additional Comments From aoliva at sourceware dot org 2008-06-03 04:35
---
The patch does indeed appear to get the code to patch the spec (thanks, Nick!),
but I'm concerned that, at this point, it might be wiser to change the spec to
match the code, for a couple of kernels and libcs