Severity: critical
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: mattislind at gmail dot com
Target Milestone: ---
When linking PDP-11 a.out files the linker seemingly random replaces bytes in
the data section with NULL bytes
https://sourceware.org/bugzilla/show_bug.cgi?id=24144
--- Comment #1 from Mattis Lind ---
This problem can be worked around as it seems by using different alignment in
the linker script.
This linker-script make ld work fine:
OUTPUT_FORMAT("a.out-pdp11")
phys = 0200;
SECTIONS
{
.text phys
https://sourceware.org/bugzilla/show_bug.cgi?id=24144
--- Comment #5 from Mattis Lind ---
Thank you Paul for adding your files!
Just a comment on the alignment.
It might very well be that an alignment of two puts the nulls somewhere outside
the data section. Hover I added a separate make target