HomeFreeBSD

[PowerPC] Only move linker sets to .data on ELFv1

Description

[PowerPC] Only move linker sets to .data on ELFv1

In r268055, powerpc64 was special cased regarding linker sets to not mark
the function pointer as 'const'.

This appears to have been done to ensure the compiler generates the function
descriptors correctly. When non-const, the function descriptors will end up
in the .data.rel.local section, and the linker set symbols will get
relocations pointing to them there.

Since function pointers on ELFv2 are "just" pointers like other platforms,
we can leave them const like they are on every other platform.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D22796

Details

Provenance
bdragonAuthored on Dec 19 2019, 10:35 PM
Parents
rG5d3bd9e2423e: Fix SIGINFO stack collection to ignore threads with swapped-out stacks.
Branches
Unknown
Tags
Unknown

Event Timeline