[lld] [MTE] [lld] Don't tag symbols in sections with implicit start/stop (PR #73531)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 21:43:52 PST 2023


MaskRay wrote:

This is an interesting case.

`createTaggedSymbols` is called before we have `OutputSection`s and `addStartStopSymbols(osd->osec)`, so it seems that we have to be conservative and special case every C identifier name section.

> Found after a new Mali GPU driver drop into Android, but I'm guessing the reason why the implicit start/stop feature exists is to facilitate exactly this type of iteration.

Consider just adding a link.

>  lld will create synthetic _start and _stop

Double underscores: `__start_`/`__stop_`


https://github.com/llvm/llvm-project/pull/73531


More information about the llvm-commits mailing list