Bug 10088 - RMC:RMC Project - add dynamic linking option for C lib
Summary: RMC:RMC Project - add dynamic linking option for C lib
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.2 M3
Assignee: Jianxun Zhang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-08-04 20:49 UTC by Jianxun Zhang
Modified: 2016-08-31 17:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
0001-rmc-explicitly-specify-hash-style-for-linker (1.19 KB, patch)
2016-08-30 21:09 UTC, Jianxun Zhang
no flags Details | Diff
0002-rmc-update-revision-of-rmc-project (1.18 KB, patch)
2016-08-30 21:10 UTC, Jianxun Zhang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jianxun Zhang 2016-08-04 20:49:40 UTC
The original design of RMC always statically link C lib to ensure its functionality in context where C lib is not provided.

But maybe we should let developers to make such decision. And when C libs are available on target, this option will greatly reduce the size of rmc binaries.
Comment 1 Jianxun Zhang 2016-08-30 21:07:53 UTC
I have merged this patch into rmc-master:
http://git.yoctoproject.org/cgit/cgit.cgi/rmc/commit/?id=2e38d056f86c0457f3a5ca7ef848545bbb190e47

I will provide patches in meta-intel to update rmc recipe
Comment 2 Jianxun Zhang 2016-08-30 21:09:22 UTC
Created attachment 3395 [details]
0001-rmc-explicitly-specify-hash-style-for-linker

1 of 2 patch in meta-intel
Comment 3 Jianxun Zhang 2016-08-30 21:10:14 UTC
Created attachment 3396 [details]
0002-rmc-update-revision-of-rmc-project

2 of 2 patches to meta-intel.
Comment 4 Jianxun Zhang 2016-08-30 21:10:46 UTC
Two patches to update rmc recipe in meta-intel are submitted today.
Comment 5 Jianxun Zhang 2016-08-31 17:47:11 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=8c30999f1f0c50597be01ed9cb8541def05cd700

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=a2221d6dd18095a7e872bb194ec840467db09f52

http://git.yoctoproject.org/cgit/cgit.cgi/rmc/commit/?id=2e38d056f86c0457f3a5ca7ef848545bbb190e47

Two meta-intel patches and the patch in rmc projcet are all merged now.

To verify this issue:
() All functions of rmc should work
() size of rmc tool binary in image should be reduced significantly to 23KB or 25KB
() Running "file" command against rmc tool binary should show "dynamically linked" in output.