Skip to content

Conversation

@resistor
Copy link
Collaborator

@resistor resistor commented Feb 3, 2025

Per the ELF spec, section groups may only contain local symbols if those
symbols are only
referenced from within the section group. 1 In the case of template
parameter objects,
they can be referenced from outside the group when the type of the
object was declared
in an anonymous namespace. In that case, we can't place the object in a
COMDAT. This matches
GCC's linkage behavior on the test input.

…ave internal linkage. (#125448)

Per the ELF spec, section groups may only contain local symbols if those
symbols are only
referenced from within the section group. [1] In the case of template
parameter objects,
they can be referenced from outside the group when the type of the
object was declared
in an anonymous namespace. In that case, we can't place the object in a
COMDAT. This matches
GCC's linkage behavior on the test input.

[1]:
https://www.sco.com/developers/gabi/latest/ch4.sheader.html#section_groups

Cherry-picked from llvm/llvm-project@8f025f2
@resistor resistor merged commit 905c7f6 into CHERIoT-Platform:cheriot Feb 3, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant