Page MenuHomeFreeBSD

databases/postgresql??-*: fix build when using LLVM binutils
Needs ReviewPublic

Authored by emaste on Apr 15 2023, 10:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 26, 5:33 AM
Unknown Object (File)
Sun, May 26, 5:32 AM
Unknown Object (File)
Fri, May 24, 4:26 PM
Unknown Object (File)
Fri, May 24, 9:06 AM
Unknown Object (File)
May 13 2024, 4:34 AM
Unknown Object (File)
Apr 26 2024, 12:15 AM
Unknown Object (File)
Mar 8 2024, 11:07 AM
Unknown Object (File)
Mar 8 2024, 11:07 AM
Subscribers
None

Details

Reviewers
girgen
Summary

pgsql's build has requested to strip all non-global symbols (strip -x), but there is at least one non-global symbol that in fact cannot be stripped because it is referenced by a relocation.

Both GNU strip and ELF Tool Chain strip silently handle this case (and just retain the local symbol), but LLVM strip is stricter and emits an error upon request to strip a non-removable local symbol.

There is an LLVM ticket open for this at https://github.com/llvm/llvm-project/issues/47468, and it may make sense for LLVM strip to behave the same as GNU and ELF Tool Chain strip. That said, pgsql should just not use strip -x when there are symbols that cannot be stripped.

PR: 270769

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270769

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.