bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/32264] For Windows,`.CRT` section should be merged into `.rdata`


From: lh_mouse at 126 dot com
Subject: [Bug ld/32264] For Windows,`.CRT` section should be merged into `.rdata`
Date: Tue, 22 Oct 2024 10:59:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=32264

--- Comment #4 from LIU Hao <lh_mouse at 126 dot com> ---
Created attachment 15755
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15755&action=edit
Partial patch to make `.idata` and `.CRT` read-only.

Partial patch to make `.idata` and `.CRT` read-only.

Windows does not require `.idata` to be writeable. These sections which are
created by Microsoft linker are not writeable, even that in UCRT source files,
variables defined in `.CRT` are not const-qualified.

Leaving those `__imp_` pointers writeable can lead to security issues, similar
to the IFUNC backdoor about XZ Utils.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]