-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plat/common: Ensure the .eh_frame
section stays
#776
plat/common: Ensure the .eh_frame
section stays
#776
Conversation
Using the `CONFIG_OPTIMIZE_DEADELIM` KConfig option adds the `--gc-sections` command-line flag to the linker. Because the `.eh_frame` section is not really referenced anywhere the linker will happily throw it away. The solution is to mark it with `KEEP` in the linker scripts. Signed-off-by: Marco Schlumpp <marco@unikraft.io>
✅ Checkpatch passed Beep boop! I ran Unikraft's
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change makes sense 👍
All good here. Thanks!
Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Reviewed-by: Sergiu Moga sergiu.moga@protonmail.com
hi, I have a small question: do |
@dinhngtu The data in |
@nderjung 👀👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated my review status, see below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Approved-by: Alexander Jung alex@unikraft.io
Prerequisite checklist
checkpatch.pl
on your commit series before opening this PR;Base target
Additional configuration
CONFIG_OPTIMIZE_DEADELIM=y
Description of changes
Using the
CONFIG_OPTIMIZE_DEADELIM
KConfig option adds the--gc-sections
command-line flag to the linker. Because the.eh_frame
section is not really referenced anywhere the linker will happily throw it away. The solution is to mark it withKEEP
in the linker scripts.