The file ld/emulparams/pdp11.sh includes the line:
The actual page size of the memory management hardware on the PDP11/45, PDP11/70, etc. is 8192 bytes. A consequence of this error is that the data section in a.out format output is not offset to a page boundary.
I have verified that the UNIX V6 ld program running on a simulated PDP11 does offset the data section to the next page boundary (20000 octal) when the -n option is included.
8192 is the correct page size for the PDP-11. There are two spots where it will need to be changed. The linker and the bfd both are at 256.
Once I can test an actual executable on 2.11BSD and UNIX v7, I'll submit a patch.
Thanks for picking up this bug.
Do you need assistance with bringing up 2.11BSD and UNIX v7 systems on an emulated PDP11? Those systems are included as examples prepared to run on the PiDP11/70 recreated model front panel that Oscar Vermeulen has produced that uses simh as the emulation and Blinkenbone as the communication API. I could assist with running whatever tests you would like to see.