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]

[PATCH 2/4][MSP430] Change .either section placement to be performed after allocation


This patch adds ".either" section placement functionality in the
"after_allocation" stage of the linker. At present, ".either" section
placement is performed only in place_orphan, and at this stage the sizes
of sections have not been finalised, as there is still relaxation to be
performed. This can lead to ROM/RAM overflow, despite there being space
in the upper regions for code/data to be placed. The modified
after_allocation stage relaxes sections just before attempting to move
them, so the section sizes can be assumed accurate. This new placement
stage operates in two passes, firstly to move .either sections in .lower
to .upper if they cause .lower to overflow, and secondly to move .either
sections in .upper to .lower if they fit in .lower and .upper is
overflowing.

Attachment: 0002-MSP430-Change-.either-section-placement-to-be-perfor.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]