|
From: <ni...@us...> - 2012-08-02 10:05:42
|
Revision: 2549
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2549&view=rev
Author: niruiyu
Date: 2012-08-02 10:05:32 +0000 (Thu, 02 Aug 2012)
Log Message:
-----------
Keep the .eh_frame section in ELF and use the full ELF as the debug symbol.
Signed-off-by: Ruiyu Ni<rui...@in...>
Reviewed-by: Erik Bjorge<eri...@in...>
Modified Paths:
--------------
trunk/BaseTools/Conf/build_rule.template
trunk/BaseTools/Scripts/gcc4.4-ld-script
Modified: trunk/BaseTools/Conf/build_rule.template
===================================================================
--- trunk/BaseTools/Conf/build_rule.template 2012-07-26 07:04:18 UTC (rev 2548)
+++ trunk/BaseTools/Conf/build_rule.template 2012-08-02 10:05:32 UTC (rev 2549)
@@ -301,8 +301,8 @@
-$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
<Command.GCC>
- $(OBJCOPY) --only-keep-debug ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
- $(OBJCOPY) --strip-unneeded ${src}
+ $(CP) ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
+ $(OBJCOPY) --strip-unneeded -R .eh_frame ${src}
#
#The below 2 lines are only needed for UNIXGCC tool chain, which genereates PE image directly
Modified: trunk/BaseTools/Scripts/gcc4.4-ld-script
===================================================================
--- trunk/BaseTools/Scripts/gcc4.4-ld-script 2012-07-26 07:04:18 UTC (rev 2548)
+++ trunk/BaseTools/Scripts/gcc4.4-ld-script 2012-08-02 10:05:32 UTC (rev 2549)
@@ -18,6 +18,10 @@
)
. = ALIGN(0x20);
}
+ .eh_frame ALIGN(0x20) :
+ {
+ KEEP (*(.eh_frame))
+ }
.got ALIGN(0x20) :
{
*(.got .got.*)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|