User Details
- User Since
- Jul 27 2018, 2:48 AM (330 w, 3 d)
Dec 9 2023
This patch has landed (https://github.com/freebsd/freebsd-src/commit/85b7c566f1538f9a2e85f76bf5b41380701987a7) but this revision is not marked as closed.
Oct 29 2023
ld: error: cannot open /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/clang/16/lib/freebsd/libclang_rt.asan_static-x86_64.a: No such file or directory
Apr 12 2023
elf_hash((const unsigned char *)"ZZZZZW9p")) == 100000000. This is an all-ascii-alphanumeric identifier.
For extra fun, you may try ld -shared --hash-style=sysv and ensure 100000000 % nbucket != 0 (lld sets nbucket to the number of dynamic symbols) and see whether the dynamic symbol cannot be bound without this patch:)
LGTM. I made a post last night and did plan to make this FreeBSD change for my exercise, but you beat it to me :)
Jul 22 2022
Cary has accepted this value on https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/KwTF_U8rBAAJ
Thanks! I don't want llvm-project to be blocked by the generic-ABI's keeping postponing, too. I guess if FreeBSD decides to define this, llvm-project can move on, too.
Feb 25 2022
You may cherry pick https://github.com/llvm/llvm-project/commit/53fc5d9b9a0110f097c6e9f7aa3bff3621eaf268 to avoid the local changes.
Feb 9 2022
remove -dc from comment
Feb 8 2022
Fix comment
Needs to fix a comment.
Nov 1 2021
Folks may be interested in
Oct 16 2021
git format-patch -2 --stdout of D32526 + D32524: https://gist.github.com/MaskRay/4df58dc970a377d04ec93a983685f1d4
address style issues
ld.lld's RELR is robust since 2019-04 (https://reviews.llvm.org/D67164) when I fixed an oscillation bug.
address comments
const char* -> const char *
RELR is like a modern version of Firefox’s ELF hack https://glandium.org/blog/?p=1177#relocations
Aug 27 2021
This is not suitable for the upstream. The root cause behind dso_local needs to be found and fixed.
Aug 16 2021
Thanks:)
Aug 15 2021
D31538 is a functional change. I think it'd be good not to fix functional change without unrelated cleanups.
fix the condition
actually default to true
FWIW TLS_BELOW_TP and TLS_ABOVE_TP are more descriptive. VARIANT_I and VARIANT_II are less clear. In addition, technically arm/aarch64 are not strict Variant I because of the 2 reserved words. mips/powerpc are not strict Variant I because of a non-zero DTP offset. FreeBSD doesn't support the strict Variant I architectures (e.g. Alpha, ia64)
Disable by default
Aug 14 2021
Simplify allocate_tls
add doc
You may use git commit --amend --author='Fangrui Song <i@maskray.me>'
Aug 11 2021
(FreeBSD on non-FreeBSD isn't smooth. i cannot do a build test.)
Aug 7 2021
I want to read some rtld-elf and libc code on Linux. I cannot run buildworld but want to generate a compile_commands.json to make my ccls happy. What should I do?
Aug 6 2021
Where do you think R_*_IRELATIVE should reside in? .rela.dyn or .rela.plt?
Feb 15 2021
Jan 31 2021
Jan 29 2021
Oct 6 2020
Oct 4 2020
Oct 3 2020
Sep 8 2020
Fix all STB_WEAK occurrences
Sep 7 2020
This has been supported since GCC 6/clang 9 (https://reviews.llvm.org/D57394). It would be better if the logic were conditioned on __GCC_ASM_FLAG_OUTPUTS__.
Mar 21 2020
I am hoping an administrator can change my username to something else. I don't want to expose my email address this way.
Mar 4 2020
I really hope some administrator can change my username to something more sensible.
Feb 23 2020
Looks good.
Sep 6 2019
Aug 21 2019
Local-Exec TP offsets are link-time constants, and thus contracts between ld and ld.so. It may be worth checking if rtld-elf computed Local-Exec TP offsets match lld.