search for: xnu

Displaying 20 results from an estimated 133 matches for "xnu".

Did you mean: gnu
2017 Jun 06
4
LLD support for ld64 mach-o linker synthesised symbols
...no other way to get the required information, such as getting the address of the mach-o headers of the current process, with ASLR enabled, if the process is not dyld as exec on macOS only provides the mach header address to dyld (*1). They are used inside of dyld and I am now using them in “x86_64-xnu-musl”. It’s possible to resolve a mach-o segment offset or a mach-o section offset using these special ld64 linker synthesised symbols. See resolveUndefines: - https://opensource.apple.com/source/ld64/ld64-274.2/src/ld/Resolver.cpp.auto.html <https://opensource.apple.com/source/ld64/ld64-274.2...
2017 Jun 06
2
LLD support for ld64 mach-o linker synthesised symbols
.... ld64 on the other hand does not have a community process for patch submission and code review that I am aware of so its unlikely that if someone from the community came up with a patch to support aliases that it would be merged. In that case I might check out the LLD code and try linking “x86_64-xnu-musl” with it. My requirements are likely simpler than Apple’s however I do need symbol aliases and these are not supported by ld64. The linker synthesised symbols are likely not too difficult to add if they are not present… now on my to do list… Michael. > On 7 Jun 2017, at 11:30 AM, Rui Ueya...
2016 May 06
3
RFC: metadata attachments for global variables
...evaluation > > Do we need to preserve an enum type that is not used anywhere in the program? (i.e. we dropped all functions that were using it) Yes, to support code like: enum { MY_CONSTANT = 42; }; int i = MY_CONSTANT; > >>> - because it contains constants that are useful (XNU for example has this version.c file: http://opensource.apple.com/source/xnu/xnu-1456.1.26/config/version.c). > > Is it a feature that we need to keep the debug info for a constant global even though we dead-strip the global? > I'd have assumed that the constant being present in the bi...
2016 May 06
2
RFC: metadata attachments for global variables
...f nothing in the IR (transitively) points to this compile unit? (i.e. it is unreachable from the IR) > > Couple of examples: > - because the compile unit could contain definitions for an enum that is useful during expression evaluation > - because it contains constants that are useful (XNU for example has this version.c file: http://opensource.apple.com/source/xnu/xnu-1456.1.26/config/version.c). > - When clang compiles debug info for a module it compiles an otherwise empty CU with debug info for all types in the module. - (something we recently discussed on cfe-commits for bette...
2017 Jun 07
3
LLD support for ld64 mach-o linker synthesised symbols
...does not have a community process for patch submission and > code review that I am aware of so its unlikely that if someone from the > community came up with a patch to support aliases that it would be merged. > > In that case I might check out the LLD code and try linking > “x86_64-xnu-musl” with it. My requirements are likely simpler than Apple’s > however I do need symbol aliases and these are not supported by ld64. The > linker synthesised symbols are likely not too difficult to add if they are > not present… now on my to do list… > > Michael. > > On 7 Jun...
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 Ap...
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 which is not actually supported by the Apple toolchain (*1), but I managed to get it to work. I’m sure Ap...
2016 May 06
2
RFC: metadata attachments for global variables
> On May 6, 2016, at 3:17 PM, Adrian Prantl <aprantl at apple.com> wrote: > > >> On May 6, 2016, at 1:17 PM, Peter Collingbourne via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which should hopefully clear the way for removing the llvm.dbg.cu named metadata node. > > Not to spoil all
2002 Oct 26
1
libsmbclient in Mac OS X / Darwin
...y. Seeing that some other things seem to ignore the --with-prefix, I prefer to just report this instead of producing patches. Regards. -lem lem@dC8541540 source> uname -a Darwin dC8541540.dslam-06-2-1-03-01-02.tdd.dsl.cantv.net 5.5 Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC Power Macintosh powerpc *** configure.in-orig Fri Oct 25 23:50:47 2002 --- configure.in Sat Oct 26 01:04:43 2002 *************** *** 855,860 **** --- 855,868 ---- SONAMEFLAG="-Wl,-soname=" AC_DEFINE...
2017 Jun 14
4
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 <mailto: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 which is not actually supported by the Apple toolchain (*1), but I managed to get it to work. I’m sure Ap...
2002 Nov 21
1
html Search Engine not working
...mpting to search for help using a keyword, nothing appears to happen; I'm still left looking at the Search Engine page. The keywords by topic links don't work either. Suggestions appreciated. jarrett R 1.6.1 (2002-11-01) Darwin Kernel Version 6.2: Tue Nov 5 22:00:03 PST 2002; root:xnu/xnu-344.12.2.obj~1/RELEASE_PPC Mozilla/5.0 (X11; U; Darwin Power Macintosh; en-US; rv:1.0.0) Gecko/20020915 <developer build> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send &qu...
2017 Jul 21
2
Where does the LLVM implement the Ubsan's instrumentations?
...ill be better. Ubsan doesn't provide an option of using callbacks to implement its instrumentation. If the no-recovery mode won't work for you, it's pretty simply to write a custom ubsan runtime that fits in a single object file. That's what I ended up doing to sanitize our kernel (xnu), so I can offer help if you decide to go down that path. best vedant > > > But I have another question about the trap-function. I hope to print the wrong code running IP address in my trap function (then, I can use llvm-symbolizer to know its code location), and I also hope to print u...
2019 Jul 12
2
Sigh. I’ve been through like 5 mailing lists and got trolled off each one. Let’s start simple
2019 Nov 15
2
Commit history duplicated, seeing weird diffusion activity (Was: [Diffusion] rG67c416dc9a5a: [DebugInfo] Allow spill slots in call site parameter descriptions)
...ts. Spill > slots are not visible to high-level LLVM IR, so they can safely be > referenced during entry value evaluation (as they cannot be clobbered by > some other function). > > This gives a 5% increase in the number of call site parameter DIEs in an > LTO x86_64 build of the xnu kernel. > > This reverts commit eb4c98ca3d2590bad9f6542afbf3a7824d2b53fa ( > [DebugInfo] Exclude memory location values as parameter entry values), > effectively reintroducing the portion of D60716 <https://reviews.llvm.org/D60716> which dealt with memory > locations (authored...
2012 Apr 18
3
3TB system drive partitioning question
so I want to install c6.2 x86_64 onto a 2.7TB /dev/sda ... its a virgin machine with no software, using pxe boot. disk druid or whatever seems to only want to let me have like 2tb of default stuff, I'm guessing because its not using GPT? do I need to preboot into a shell or something and use parted before I can install ? -- john r pierce N 37, W 122 santa
2007 Oct 21
2
xattrs: Permission denied?
I've found a(nother) bug with the xattr code: kiwiw:~/x terpstra$ uname -a Darwin kiwiw.lan 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc kiwiw:~/x terpstra$ echo test > bar kiwiw:~/x terpstra$ xattr --set broken demo bar kiwiw:~/x terpstra$ chmod 0444 bar kiwiw:~/x terpstra$ rsync-3.0 -aHAXSx bar pumpkin::staging/tmp/ rsync: rsync_xal_set: lsetxattr(".bar.E055QA","us...
2020 May 26
2
Emitting aligned nlist_64 structures for Mach-O in MC
...[2] https://github.com/apple-opensource/ld64/blob/fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/FileAbstraction.hpp#L137 [3] https://github.com/apple-opensource/ld64/blob/fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/FileAbstraction.hpp#L96 [4] https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24aa7443/libkern/libkern/OSByteOrder.h#L246 [5] https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24aa7443/libkern/libkern/OSByteOrder.h#L109-L117 From: David Blaikie <dblaikie at gmail.com> Date: Tuesday, May 26, 2020 at 11:25 AM T...
2018 Feb 25
1
Memory sanitizer porting
Hi, 1. No, there is no custom triple for the platform. It currently uses Linux triple, and I do not think there is a possibility of upstreaming not so many changes in such a way. On the other side Apple uses the mllvm asan option to implement KASAN in XNU, so I think it will be fine to upstream a similar option, which I guess, could also be used for debugging, and may be helpful to other people prototyping their runtimes. 2. Thank you for this clarification. It makes good sense now. 3. That’s what I supposed to be the case, thanks. Best regards,...
2018 Feb 22
2
Memory sanitizer porting
...val_tls.63, __emutls_v.__msan_param_tls.65), and this results in an undefined reference during the linkage. Here the question is what was initially intended to be done. I know that compiling blacklisted asan runtime code with -fsanitize=address is just fine, and this is what Apple actually does in XNU KASAN implementation. I kind of expected it to be the right way to do for msan as well, is this just a bug? If it is not, should I compile msan runtime without -fsanitize=memory in this case, and in fact asan runtime too? 3. Other than that, I see that memory sanitizer is currently implemented onl...
2019 Jul 08
2
Sigh. I’ve been through like 5 mailing lists and got trolled off each one. Let’s start simple
...tidirectional binary tree functions, I call them graphs because someone on Usenet told me they replicate a graph since they work on multiple dimensions. Now this is memory intensive if you don’t implement rolling dma, I suggest something modularized into the kernel to save cpu cycles. I understand xnu is written in c++, is it that hard to rewrite all of llvm in optimized, oh well, since I’ve had the worst day of my life, I’ll call It unidefnet coding subsystem, multidimensional multidirectional binary graphs to simulate a neural network? A neural network is a mdmdbt tied to a master function o...