Re: Problem with linking static lib text into specific section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Elad Yosef <elad.yosef@xxxxxxxxx> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux