Adding multilib target for arm-none-eabi-gcc

2023-01-03 Thread Joe Nelson
I'm cross-compiling for an ST Nucleo F411RE, which requires these CFLAGS: -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 On my system, 'arm-none-eabi-gcc -print-multi-directory' can't find a match for them. By comparison, on Debian, it finds 'thumb/v7e-m+fp/hard'. Is there a

Re: MALLOC_STATS [was: Clang sanitizer support]

2021-07-23 Thread Joe Nelson
Otto Moerbeek wrote: > yeah, MALLOC_STATS is not well maintained... What's the relation between the MALLOC_STATS code currently in -stable, and the code in your mdump [0] project? Are you experimenting with different approaches? BTW, thanks for your work on this. 0: https://github.com/omoerbeek

Re: MALLOC_STATS [was: Clang sanitizer support]

2021-07-23 Thread Joe Nelson
Omar Polo wrote: > not tried, but compiles :) Your patch made it compile for me too. With that change I was able to run through the steps in https://www.drijf.net/malloc/ and detect memory leaks! Thank you. What's the process to get your change applied to -current? Should it be submitted to the t

Re: MALLOC_STATS [was: Clang sanitizer support]

2021-07-23 Thread Joe Nelson
Omar Polo wrote: > There's a built-in mechanisms to check for memory leaks: > > https://www.drijf.net/malloc/ > > don't know if it still applies, I tried only once and was like a couple > of years ago (if not more). Thanks for the tip, Omar. I just tried compiling malloc.c with MALLOC_STAT

Re: Clang sanitizer support

2021-07-20 Thread Joe Nelson
On Fri, Jan 8, 2021, at 5:40 PM, Joe Nelson wrote: > Hi all, I'd like to use Clang's AddressSanitizer and ThreadSanitizer > on my OpenBSD development machine. Following up on this, looks like MALLOC_OPTIONS can help me detect use-after-free and double free errors. What I'

Installing across two SSDs, encrypted

2021-01-29 Thread Joe Nelson
I'd like to install obsd on a laptop that has one built-in 128GB SSD, and a 1TB SATA SSD added in a separate bay. Was thinking of putting the system files on the small drive, and /home, /var, /tmp, and /usr/local on the big one. I'd like to use full-disk encryption for the big drive. Two questions

Clang sanitizer support

2021-01-08 Thread Joe Nelson
Hi all, I'd like to use Clang's AddressSanitizer and ThreadSanitizer on my OpenBSD development machine. However, the Clang 10 documentation lists OpenBSD support for only the UndefinedBehaviorSanitizer. Does anyone know how hard it would be to port them? Are they absent because nobody really cares

How to dock laptop more easily

2019-10-13 Thread Joe Nelson
top x | asleep xx | awakeboth x| asleep x | awakelaptop | asleep -- Joe Nelson https://begriffs.com

Re: Haskell compilation issues

2019-05-19 Thread Joe Nelson
Matthias Kilian wrote: > I've a really smart solution for the problem: I'll never ever even try > to give some helpful answer to any of the mails on misc@ Sorry, my message must have sounded snarky. I didn't intend it that way. Honestly just wanted to help you with your email setup. It can be comp

Re: Haskell compilation issues

2019-05-18 Thread Joe Nelson
Matthias Kilian wrote: > ps: please note that I'm not subscribed to misc@ with my 'real' > mail account, only with a crappy gmail account I'm only reading on > my tablet (from which I forwarded your mail to my real address). So > better cc' me if you've any other questions ;-) FYI, the way you rep

Re: Haskell compilation issues

2019-05-18 Thread Joe Nelson
Omar Polo wrote: > What I think it's required to compile and run haskell program is to > wxallow the partition. If you're using the standard layout the /tmp > and /home should be wxallowed. Yep, GHC creates binaries with W^X violations. The GHC developers are working on this problem in [0], but fo