For a SHT_NOBITS section like .bss, its sh_offset is typically not
aligned by sh_addralign. If it is converted to SHT_PROGBITS by
--set-section-flags .bss=alloc,contents, we should conceptually align
it when computing the output size for -O binary. Otherwise the output
size may be smaller than GNU objcopy produced output.
- binary-no-paddr.test has a case with non-sensical p_paddr=1 which has a changed behavior. Update it.
WIll change to:
For the p_paddr=0 case: .text and .data are rewritten to the same place. The size is 4.