as: R
1
1 2.13 Join Data and Text Sections: '-R'
1 ======================================
1
1 '-R' tells 'as' to write the object file as if all data-section data
1 lives in the text section. This is only done at the very last moment:
1 your binary data are the same, but data section parts are relocated
1 differently. The data section part of your object file is zero bytes
11 long because all its bytes are appended to the text section. (⇒
Sections and Relocation Sections.)
1
1 When you specify '-R' it would be possible to generate shorter
1 address displacements (because we do not have to cross between text and
1 data section). We refrain from doing this simply for compatibility with
1 older versions of 'as'. In future, '-R' may work this way.
1
1 When 'as' is configured for COFF or ELF output, this option is only
1 useful if you use sections named '.text' and '.data'.
1
1 '-R' is not supported for any of the HPPA targets. Using '-R'
1 generates a warning from 'as'.
1