Building Elfutils with Mingw32

2023-09-13 Thread McAllister, Colin via Elfutils-devel
Hello, I'm currently trying to determine the level of effort required to compile Elfutils for Windows using MinGW. I'd like to get a version of Elfutils compiled with libdebginfod in order to compile GDB with debuginfod support on Windows. I've currently explored two avenues... I first tried t

RE: Building Elfutils with Mingw32

2023-09-14 Thread McAllister, Colin via Elfutils-devel
Hi Ulf, I did see that there were quite a few patches sent to the ML toward the end of 2022 that attempted to add Windows support. https://sourceware.org/pipermail/elfutils-devel/2022q4/005449.html https://sourceware.org/pipermail/elfutils-devel/2022q4/005667.html It looks like some of the patch

Re: Building Elfutils with Mingw32

2023-09-15 Thread McAllister, Colin via Elfutils-devel
Ulf, My only other suggestion for avoiding manually specifying O_BINARY and O_TEXT would be to override the open call on Windows and use O_BINARY as the default and switch to O_TEXT on a condition. Maybe that condition could be based on the file signature or some other analysis of the file cont

RE: Building Elfutils with Mingw32

2023-09-18 Thread McAllister, Colin via Elfutils-devel
Hello, > There is a large number of developers who build software for ELF-based > embedded systems on windows and test/debug/profile/deploy it over some > network or USB connection. Those people want to have elfutils for their > debugging and profiling. They want to use elfutils on the host (the w