Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-04 Thread Marvin Häuser
> On 4. Apr 2023, at 16:03, Ard Biesheuvel wrote: > > On Tue, 4 Apr 2023 at 13:10, Rebecca Cran > wrote: >> >> On 4/4/23 1:22 AM, Ard Biesheuvel wrote: >>> On Mon, 3 Apr 2023 at 22:33, Rebecca Cran >> > wrote: As part of my work on the

Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-04 Thread Ard Biesheuvel
On Tue, 4 Apr 2023 at 13:10, Rebecca Cran wrote: > > On 4/4/23 1:22 AM, Ard Biesheuvel wrote: > > On Mon, 3 Apr 2023 at 22:33, Rebecca Cran wrote: > >> As part of my work on the toolchain definitions, I've come across a > >> situation where ld.lld fails to align sections correctly, due to it >

Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-04 Thread Rebecca Cran
On 4/4/23 1:22 AM, Ard Biesheuvel wrote: On Mon, 3 Apr 2023 at 22:33, Rebecca Cran wrote: As part of my work on the toolchain definitions, I've come across a situation where ld.lld fails to align sections correctly, due to it being invoked via clang with the '-n' option, which causes GenFw to

Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-04 Thread Marvin Häuser
On 4. Apr 2023, at 09:23, Ard Biesheuvel wrote:On Mon, 3 Apr 2023 at 22:33, Rebecca Cran wrote:As part of my work on the toolchain definitions, I've come across asituation where ld.lld fails to align sections correctly, due to itbeing invoked via clang with the '-n' option, which causes GenFw

Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-04 Thread Ard Biesheuvel
On Mon, 3 Apr 2023 at 22:33, Rebecca Cran wrote: > > As part of my work on the toolchain definitions, I've come across a > situation where ld.lld fails to align sections correctly, due to it > being invoked via clang with the '-n' option, which causes GenFw to fail > with "Section address not

Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-03 Thread Rebecca Cran
On 4/3/23 2:58 PM, Marvin Häuser wrote: That last part is actually not ignoring the use-case, that *is* our use-case. The terminology again is very OS-oriented, it’s important to know that generally OSes will fail to load binaries that are aligned less than the platform page size, as they

Re: [edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-03 Thread Marvin Häuser
> On 3. Apr 2023, at 22:33, Rebecca Cran wrote: > > As part of my work on the toolchain definitions, I've come across a > situation where ld.lld fails to align sections correctly, due to it being > invoked via clang with the '-n' option, which causes GenFw to fail with > "Section address

[edk2-devel] Linker scripts use of "-z common-page-size=0x20" etc.

2023-04-03 Thread Rebecca Cran
As part of my work on the toolchain definitions, I've come across a situation where ld.lld fails to align sections correctly, due to it being invoked via clang with the '-n' option, which causes GenFw to fail with "Section address not aligned to its own alignment.". The following messages are