[PATCH] D123874: [Clang][IA] support -generate-unused-section-symbols={yes|no}

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 13:55:50 PDT 2022


MaskRay added a comment.

I wish we don't do this. 
https://sourceware.org/pipermail/binutils/2022-March/119940.html (`RFC: GAS: Add option to generate unused section symbols`):

> This problem was fixed in the kernel (and backported by distros to their

kernels if binutils was updated); it's fairly simplistic changes.

> I don't see the need for returning (optionally) to the old behaviour again.  I mean, at the time, when 2.36 came out, sure, the patch might have made sense, but now?

LLVM integrated assembler has stayed the current behavior for many years.
Having the feature would only benefit the next major release 15.0.0. Many releases before 15.0.0 are still supported, so some conditional compilation is needed, making the feature less useful.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123874



More information about the cfe-commits mailing list