Problem with linking static lib text into specific section
Ian Lance Taylor
iant@google.com
Mon Mar 5 19:58:00 GMT 2012
Elad Yosef <elad.yosef@gmail.com> writes:
> When I add the new lib the ld file has these changes
>
>
> #define SECTION_text(_region_, _vma_, _lma_) \
> .text _vma_ : _lma_ \
> { \
> _stext = .; _ftext = . ; \
> *(EXCLUDE_FILE (*libMy-Cli.a) .text) \
> *(EXCLUDE_FILE (*libMy-Cli.a) .text.*) \
> *(EXCLUDE_FILE (*libMy-ATP-GUI.a) .text) \ --- New LIB
> *(EXCLUDE_FILE (*libMy-ATP-GUI.a) .text.*) \ --- New LIB
I don't see how that could work. The first EXCLUDE_FILE will match the
second library, and the second EXCLUDE_FILE will match the first
library. I think you need to write something like
*(EXCLUDE_FILE (*libMy-Cli.a *libMy-ATP-GUI.a) .text .text.*)
Ian
More information about the Gcc-help
mailing list