This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch adds a feature to the linker which adds a lower/either/upper prefix to code/data sections, depending on the option passed to --code- region or --data-region. GCC propagates the parameters passed to -mcode- region and -mdata-region to these linker options. The benefit of this feature is that precompiled objects or libraries can now be shuffled around by the linker placement algorithm. For example, simple C++ programs do not build for some devices with small ROM/RAM. Previously, C++ libraries would take up many kB and would all be placed in lower memory, but when the sections from the libraries are shuffled between the regions there is enough space available to successfully link these programs. The added tests pass when built with todays GCC trunk and binutils master.
Attachment:
0001-MSP430-Add-feature-to-add-lower-either-upper-prefixe.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |