Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Aug 1, 2022

int3 and others added 2 commits July 31, 2022 13:24
From inspection of

  git log origin/release/14.x..origin/release/15.x -- lld/MachO

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D130850
When building on Linux/sparc64, the 32-bit `libclang_rt.asan.so`,
`libclang_rt.ubsan_minimal.so`, and `libclang_rt.ubsan_standalone.so`
failed to link with undefined references to 64-bit atomics, which `clang`
cannot inline.  Even D130569 <https://reviews.llvm.org/D130569> didn't help
because those libraries are linked with `-nodefaultlibs`, so dependent
libraries need to be added explicitly.

That's what this patch does.

Tested on `sparc64-unknown-linux-gnu` and `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D130571

(cherry picked from commit 0b2d5fd)
@tstellar
Copy link
Contributor

tstellar commented Aug 2, 2022

@glaubitz What do you think about backporting this?

@glaubitz
Copy link
Contributor

glaubitz commented Aug 2, 2022

@tstellar Good idea, but I think it should be backported together with the other recent SPARC-related changes by @rorth.

@tstellar
Copy link
Contributor

tstellar commented Aug 2, 2022

@glaubitz Do you mean these: #32 #33 #34

@glaubitz
Copy link
Contributor

glaubitz commented Aug 2, 2022

@tstellar tstellar merged commit 73d45fe into release/15.x Aug 2, 2022
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.

Merge 0b2d5fd48bc281af89e5e7bfa33a3054b826ed52 into 15.0.0

6 participants