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

investigate --symbol-ordering-file #156

Open
nickdesaulniers opened this issue May 27, 2021 · 3 comments
Open

investigate --symbol-ordering-file #156

nickdesaulniers opened this issue May 27, 2021 · 3 comments

Comments

@nickdesaulniers
Copy link
Member

nickdesaulniers commented May 27, 2021

https://reviews.llvm.org/D26130

I'm not sure how @GeorgiiR was creating these input files; there's a comment on an earlier version of the patch of just using readelf -ws for randomized order, but I recall CrOS folks discussing this at one point. I wonder if they already a file like this for clang?

@nickdesaulniers
Copy link
Member Author

See also @glandium's https://glandium.org/blog/?p=1296.

@nickdesaulniers
Copy link
Member Author

nickdesaulniers commented May 29, 2021

https://llvm.org/docs/BuildingADistribution.html#options-for-optimizing-llvm seems to sugguest there was some support for linker order files on OSX via dtrace. That documentation probably needs a revamp if it's possible to generate this on Linux.

https://reviews.llvm.org/D16134 seems to be the commit that did so; I wonder if we can do the equivalent with BPF?

@nickdesaulniers
Copy link
Member Author

@gburgessiv found -Wl,--print-symbol-order=$_output_orderfile which would let us reuse an order file from a profile build, statically.

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

1 participant