Skip to content
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

option --section-ordering-file #1231

Open
waarmond opened this issue Apr 12, 2024 · 1 comment
Open

option --section-ordering-file #1231

waarmond opened this issue Apr 12, 2024 · 1 comment

Comments

@waarmond
Copy link

waarmond commented Apr 12, 2024

https://github.com/intel/thin-layout-optimizer is using --text-section-ordering-file (in lld - mysterious user called ruiu)

Would it be worth to support?

@rui314
Copy link
Owner

rui314 commented Apr 12, 2024

I assume you are talking about --symbol-ordering-file. We may want to include this feature, but I'm not certain if the --symbol-ordering-file is the best interface to implement it. It appears that ld.lld also supports --call-graph-profile-sort to optimize the section layout. However, I think we might want to allow users to pass a script file path to the linker, which would use the input section information as input and output the desired section order. Then, we could provide only this option instead of --symbol-ordering-file and --call-graph-profile-sort.

@waarmond waarmond changed the title option --section-ordering-file option section-ordering-file Apr 12, 2024
@waarmond waarmond changed the title option section-ordering-file option --section-ordering-file Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants