Issue 24711 - Elf object file code sections are being padded with 00 bytes for alignment
Summary: Elf object file code sections are being padded with 00 bytes for alignment
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Linux
: P1 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-20 04:37 UTC by Walter Bright
Modified: 2024-08-20 05:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2024-08-20 04:37:17 UTC
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 zxinsworld 2024-08-20 05:02:27 UTC
Should it be padded with CC or 90 in your opinion?