Bug 24711 – Elf object file code sections are being padded with 00 bytes for alignment

Status
NEW
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2024-08-20T04:37:17Z
Last change time
2024-12-13T19:36:53Z
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#18264 →

Comments

Comment #0 by bugzilla — 2024-08-20T04:37:17Z
gcc doesn't do that. I don't know why dmd is. This can cause problems with disassembly because 00 bytes decode to two instructions, which can overflow the code section.
Comment #1 by zxinsworld — 2024-08-20T05:02:27Z
Should it be padded with CC or 90 in your opinion?
Comment #2 by robert.schadek — 2024-12-13T19:36:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18264 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB