]> xenbits.xensource.com Git - seabios.git/commitdiff
Permit .rodata.__PRETTY_FUNCTION__. sections in roms.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 9 Feb 2012 01:23:36 +0000 (20:23 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 22 Feb 2012 12:44:09 +0000 (12:44 +0000)
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>
tools/layoutrom.py

index 45738a3bb5cf3306b7f0eeee6d233835d8e3ccd6..86e1f3351f47019490debd620980feec158c9bec 100755 (executable)
@@ -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(