search for: n_weak_def

Displaying 5 results from an estimated 5 matches for "n_weak_def".

2018 Feb 16
0
ThinLTO and linkonce_odr + unnamed_addr
...e to block this optimization because of #1 – it seems > like there should be a way to work around that. Perhaps there's something > we can change in ld64. > As far as I can tell, the "auto hide" property is independent of whether the symbol is actually hidden (the former is N_WEAK_DEF|N_WEAK_REF in n_desc, and the latter is N_PEXT in n_type). So perhaps what you can do is change ld64 to recognize N_WEAK_DEF|N_WEAK_REF together with N_PEXT as meaning "hidden and mergeable". Peter > > > Steven > > > >> On Feb 9, 2018, at 2:00 PM, Steven Wu via l...
2018 Feb 14
2
ThinLTO and linkonce_odr + unnamed_addr
> On Feb 14, 2018, at 09:55, Steven Wu via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I did a bit more digging for the auto hide problem. Here is my finding that prevent us from doing this by default in GlobalOpts > > 1. When a symbol is linkonce_odr hidden unnamed_addr, it emits both '.private_extern' and '.weak_def_can_be_hidden' asm directives on
2017 Jun 14
4
LLD support for mach-o aliases (weak or otherwise)
...r binary with DYLD_INSERT_LIBRARIES. I want to interpose Libc symbols with some of the symbols present in my binary (memory allocator, mmap). Interposition support is somewhat lacking in the Mach-O toolchain and runtime linker despite the Mach-O format technically supporting what I need (N_INDR and N_WEAK_DEF). > > - https://developer.apple.com/documentation/kernel/nlist_64 <https://developer.apple.com/documentation/kernel/nlist_64> Dyld does not generally use nlists at runtime except for things like dladdr(), and has not for the last 10 years or so. Instead dyld uses a trie to publish expo...
2017 Jun 14
1
LLD support for mach-o aliases (weak or otherwise)
> On Jun 6, 2017, at 4:08 PM, Michael Clark via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi Folks, > > I’m working on a port of musl libc to macos (arch triple is “x86_64-xnu-musl”) to solve some irreconcilable issues I’m having with libSystem.dylib. I don’t want to use glibc for various reasons, mainly because I want to static link. I have static PIE + ASLR working
2017 Jun 06
4
LLD support for mach-o aliases (weak or otherwise)
Hi Folks, I’m working on a port of musl libc to macos (arch triple is “x86_64-xnu-musl”) to solve some irreconcilable issues I’m having with libSystem.dylib. I don’t want to use glibc for various reasons, mainly because I want to static link. I have static PIE + ASLR working which is not actually supported by the Apple toolchain (*1), but I managed to get it to work. I’m sure Apple might say