diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-02-08 20:23:36 -0500 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-02-22 12:44:09 +0000 |
commit | c69e288adfe6c273df4b1f3d9c223d8a4fb613cd (patch) | |
tree | fe519059a34ae1b50edb4ac5d8847d653105c197 | |
parent | 002d30b5f4f48ee203be3bad9d68dc8b538ee35b (diff) | |
download | seabios-c69e288adfe6c273df4b1f3d9c223d8a4fb613cd.zip seabios-c69e288adfe6c273df4b1f3d9c223d8a4fb613cd.tar.gz seabios-c69e288adfe6c273df4b1f3d9c223d8a4fb613cd.tar.bz2 |
Permit .rodata.__PRETTY_FUNCTION__. sections in roms.
Some versions of gcc appear to define these sections even though they
aren't used in the code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
(cherry picked from commit 805ede2bd35243a4298bc64bd81be6db7cf57f58)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
-rwxr-xr-x | tools/layoutrom.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/layoutrom.py b/tools/layoutrom.py index 45738a3..86e1f33 100755 --- a/tools/layoutrom.py +++ b/tools/layoutrom.py @@ -147,8 +147,10 @@ def getSectionsPrefix(sections, category, prefix): def doLayout(sections): # Determine 16bit positions textsections = getSectionsPrefix(sections, '16', '.text.') - rodatasections = (getSectionsPrefix(sections, '16', '.rodata.str1.1') - + getSectionsPrefix(sections, '16', '.rodata.__func__.')) + rodatasections = ( + getSectionsPrefix(sections, '16', '.rodata.str1.1') + + getSectionsPrefix(sections, '16', '.rodata.__func__.') + + getSectionsPrefix(sections, '16', '.rodata.__PRETTY_FUNCTION__.')) datasections = getSectionsPrefix(sections, '16', '.data16.') fixedsections = getSectionsPrefix(sections, '16', '.fixedaddr.') @@ -159,8 +161,10 @@ def doLayout(sections): # Determine 32seg positions textsections = getSectionsPrefix(sections, '32seg', '.text.') - rodatasections = (getSectionsPrefix(sections, '32seg', '.rodata.str1.1') - +getSectionsPrefix(sections, '32seg', '.rodata.__func__.')) + rodatasections = ( + getSectionsPrefix(sections, '32seg', '.rodata.str1.1') + + getSectionsPrefix(sections, '32seg', '.rodata.__func__.') + + getSectionsPrefix(sections, '32seg', '.rodata.__PRETTY_FUNCTION__.')) datasections = getSectionsPrefix(sections, '32seg', '.data32seg.') code32seg_start = setSectionsStart( |