Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2023-04-14 Thread Nick Clifton
Hi Pali, Hello! Just for a record, I filled individual issues to bugzilla: https://sourceware.org/bugzilla/show_bug.cgi?id=30004 https://sourceware.org/bugzilla/show_bug.cgi?id=30139 https://sourceware.org/bugzilla/show_bug.cgi?id=30140 https://sourceware.org/bugzilla/show_bug.cgi?id=30141

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2023-04-12 Thread Pali Rohár
On Wednesday 12 April 2023 10:53:32 Nick Clifton wrote: > Hi Pali, > > > > Hello! Just for a record, I filled individual issues to bugzilla: > > > https://sourceware.org/bugzilla/show_bug.cgi?id=30004 > > > https://sourceware.org/bugzilla/show_bug.cgi?id=30139 > > >

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2023-04-01 Thread Pali Rohár
On Monday 20 February 2023 19:25:22 Pali Rohár wrote: > On Tuesday 03 January 2023 11:06:26 Nick Clifton wrote: > > Hi Pali, > > > > > Hello! I would like to remind this thread for gcc/binutils developers. > > > Most of these issues are still present and cause problems for compiling > > > native

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2023-02-20 Thread Pali Rohár
On Tuesday 03 January 2023 11:06:26 Nick Clifton wrote: > Hi Pali, > > > Hello! I would like to remind this thread for gcc/binutils developers. > > Most of these issues are still present and cause problems for compiling > > native PE binary. If you have questions or you need any other information

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2023-01-04 Thread Nick Clifton
Hi Pali, Hello! I would like to remind this thread for gcc/binutils developers. Most of these issues are still present and cause problems for compiling native PE binary. If you have questions or you need any other information please let me know. Have bug reports been filed for the individual

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-12-26 Thread Pali Rohár
Hello! I would like to remind this thread for gcc/binutils developers. Most of these issues are still present and cause problems for compiling native PE binary. If you have questions or you need any other information please let me know. On Sunday 30 October 2022 02:06:11 Pali Rohár wrote: >

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-12-11 Thread Jan Beulich via Mingw-w64-public
On 26.11.2022 20:04, Pali Rohár wrote: > On Monday 21 November 2022 08:24:36 Jan Beulich wrote: >> But then, with you replying to >> me specifically, perhaps you're wrongly assuming that I would be >> planning to look into addressing any or all of these? My earlier reply >> was merely to point out

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-12-11 Thread Jan Beulich via Mingw-w64-public
On 20.11.2022 14:10, Pali Rohár wrote: > On Saturday 05 November 2022 02:26:52 Pali Rohár wrote: >> On Saturday 05 November 2022 01:57:49 Pali Rohár wrote: >>> On Monday 31 October 2022 10:55:59 Jan Beulich wrote: On 30.10.2022 02:06, Pali Rohár via Binutils wrote: > * GCC or LD (not sure

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-12-11 Thread Jan Beulich via Mingw-w64-public
On 28.11.2022 09:40, Jonathan Wakely wrote: > On Mon, 28 Nov 2022, 08:08 Jan Beulich via Gcc, wrote: > >> On 26.11.2022 20:04, Pali Rohár wrote: >>> On Monday 21 November 2022 08:24:36 Jan Beulich wrote: But then, with you replying to me specifically, perhaps you're wrongly assuming

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-11-28 Thread Jonathan Wakely
On Mon, 28 Nov 2022, 08:08 Jan Beulich via Gcc, wrote: > On 26.11.2022 20:04, Pali Rohár wrote: > > On Monday 21 November 2022 08:24:36 Jan Beulich wrote: > >> But then, with you replying to > >> me specifically, perhaps you're wrongly assuming that I would be > >> planning to look into

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-11-26 Thread Pali Rohár
On Monday 21 November 2022 08:24:36 Jan Beulich wrote: > On 20.11.2022 14:10, Pali Rohár wrote: > > On Saturday 05 November 2022 02:26:52 Pali Rohár wrote: > >> On Saturday 05 November 2022 01:57:49 Pali Rohár wrote: > >>> On Monday 31 October 2022 10:55:59 Jan Beulich wrote: > On 30.10.2022

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-11-20 Thread Pali Rohár
On Saturday 05 November 2022 02:26:52 Pali Rohár wrote: > On Saturday 05 November 2022 01:57:49 Pali Rohár wrote: > > On Monday 31 October 2022 10:55:59 Jan Beulich wrote: > > > On 30.10.2022 02:06, Pali Rohár via Binutils wrote: > > > > * GCC or LD (not sure who) sets memory alignment

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-11-05 Thread Jan Beulich via Mingw-w64-public
On 30.10.2022 02:06, Pali Rohár via Binutils wrote: > * GCC or LD (not sure who) sets memory alignment characteristics > (IMAGE_SCN_ALIGN_MASK) into the sections of PE executable binary. > These characteristics should be only in COFF object files, not > executable binaries. Specially they

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-11-04 Thread Pali Rohár
On Saturday 05 November 2022 01:57:49 Pali Rohár wrote: > On Monday 31 October 2022 10:55:59 Jan Beulich wrote: > > On 30.10.2022 02:06, Pali Rohár via Binutils wrote: > > > * GCC or LD (not sure who) sets memory alignment characteristics > > > (IMAGE_SCN_ALIGN_MASK) into the sections of PE

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-11-04 Thread Pali Rohár
On Monday 31 October 2022 10:55:59 Jan Beulich wrote: > On 30.10.2022 02:06, Pali Rohár via Binutils wrote: > > * GCC or LD (not sure who) sets memory alignment characteristics > > (IMAGE_SCN_ALIGN_MASK) into the sections of PE executable binary. > > These characteristics should be only in

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-10-30 Thread ralph engels
i think most of it stems from binutils tools being geared towards linux driver development ? and since noone before has shown much interrest in developing drivers for windows using the gnu tools. I also think that there might be some pitfalls -> incompatible exception models for one (most

Re: [Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-10-30 Thread Martin Storsjö
On Sun, 30 Oct 2022, Pali Rohár wrote: * LD --dynamicbase is not working correctly. If used for PE executables (not dynamic libraries) then it does *not* generate relocation info. And without relocation info in PE binary, it is not possible to relocate base address. Which makes dynamic base

[Mingw-w64-public] Problems when building NT kernel drivers with GCC / LD

2022-10-29 Thread Pali Rohár
Hello! I tried to develop simple NT kernel driver and build it via GNU GCC, LD and mingw-w64 ecosystem but due to issues with compiler and linker, it is not possible to generate final .sys binary without adding workarounds or postprocessing resulted PE .sys binary. I'm sending this email to all