[PATCH] D136078: Use-after-return sanitizer binary metadata

Marco Elver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 2 02:58:04 PST 2022


melver added a comment.



>> Do you have any other ideas on how to dead with this?
>
> It's strange we've not encountered this elsewhere - this must be some special (old?) linker. I'll investigate...

GNU ld <= 2.35 does not support mixed SHF_LINK_ORDER and non-SHF_LINK_ORDER sections.

This is about the relative w.r.t. other sections when the linker merges the sections. From what I can find, we need to retain SHF_LINK_ORDER to support gc-sections properly.

This is a good summary: https://maskray.me/blog/2021-01-31-metadata-sections-comdat-and-shf-link-order
@MaskRay

I'm going to try and see how I can add the SHF_LINK_ORDER attribute to the section output for the dummy variable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136078/new/

https://reviews.llvm.org/D136078



More information about the llvm-commits mailing list