You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by "PengZheng (via GitHub)" <gi...@apache.org> on 2023/10/27 03:06:11 UTC

[I] Export less when using Embedded Bundles (celix)

PengZheng opened a new issue, #675:
URL: https://github.com/apache/celix/issues/675

   Currently, to support embedded bundles, we use linker flag `--export-dynamic` to make the added symbols visible to `dlopen`.
   This flag will export all symbols, and thus will make `gc-sections` useless.
   
   Considering the use case of embedded Celix into a large legacy application ([1]), which relies `gc-sections` to reduce its binary footprint, I suggest exporting less by using `--export-dynamic-symbol`.
   
   [1] https://lists.apache.org/thread/tdl6zt8dh34ynh8cz32rxs8o957ljlzt


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Export less when using Embedded Bundles (celix)

Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #675:
URL: https://github.com/apache/celix/issues/675#issuecomment-1791961146

   > Do we still need embedded bundles?
   
   Currently I have no usage of embedded bundles, and thus I am not against removing it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Export less when using Embedded Bundles (celix)

Posted by "pnoltes (via GitHub)" <gi...@apache.org>.
pnoltes commented on issue #675:
URL: https://github.com/apache/celix/issues/675#issuecomment-1793836785

   > > Do we still need embedded bundles?
   > 
   > Currently I have no usage of embedded bundles, and thus I am not against removing it.
   
   I will remove the support for embedded bundles. In hindsight I think it is better to focus on a better bundle caching/storage system.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Export less when using Embedded Bundles (celix)

Posted by "pnoltes (via GitHub)" <gi...@apache.org>.
pnoltes commented on issue #675:
URL: https://github.com/apache/celix/issues/675#issuecomment-1783798796

   Do we still need embedded bundles?
   
   I added this with the idea that you could create a executable with only embedded bundles and install and use that without needed to figure out how to install bundles and use bundles on a target platform. 
   But it does create additional complexity (mainly `--export-dynamic-symbol` and assembly code) and I am not sure anymore if this is worth it. 
   
   Because we are now working on a major update, it is also possible to drop embedded bundles support. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Export less when using Embedded Bundles (celix)

Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng commented on issue #675:
URL: https://github.com/apache/celix/issues/675#issuecomment-1922970135

   This has been addressed by #707.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Export less when using Embedded Bundles (celix)

Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng closed issue #675: Export less when using Embedded Bundles
URL: https://github.com/apache/celix/issues/675


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org