[Scummvm-cvs-logs] SF.net SVN: scummvm:[55149] scummvm/trunk

marcus_c at users.sourceforge.net marcus_c at users.sourceforge.net
Fri Jan 7 17:25:05 CET 2011


Revision: 55149
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55149&view=rev
Author:   marcus_c
Date:     2011-01-07 16:25:05 +0000 (Fri, 07 Jan 2011)

Log Message:
-----------
DC: Ensure creation of output sections .{c,d}tors

Add an object with an empty .ctors and .dtors section to the build
of each plugin.  This ensures that there will be an output section
.ctors and one .dtors in the output file (they could be empty though).
If these output sections were to be removed, the symbols defined inside
by the linker script could disappear as well, and we don't want that.

Modified Paths:
--------------
    scummvm/trunk/configure

Added Paths:
-----------
    scummvm/trunk/backends/platform/dc/plugin_head.S

Added: scummvm/trunk/backends/platform/dc/plugin_head.S
===================================================================
--- scummvm/trunk/backends/platform/dc/plugin_head.S	                        (rev 0)
+++ scummvm/trunk/backends/platform/dc/plugin_head.S	2011-01-07 16:25:05 UTC (rev 55149)
@@ -0,0 +1,6 @@
+
+	.section        .ctors,"aw", at progbits
+	.section        .dtors,"aw", at progbits
+
+	.end
+	


Property changes on: scummvm/trunk/backends/platform/dc/plugin_head.S
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Author Date Id Revision
Added: svn:eol-style
   + native

Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure	2011-01-07 16:19:13 UTC (rev 55148)
+++ scummvm/trunk/configure	2011-01-07 16:25:05 UTC (rev 55149)
@@ -2140,9 +2140,9 @@
 DYNAMIC_MODULES		:= 1
 PLUGIN_PREFIX		:=
 PLUGIN_SUFFIX		:= .plg
-PLUGIN_EXTRA_DEPS	= $(abspath $(srcdir)/backends/platform/dc/plugin.x $(srcdir)/backends/platform/dc/plugin.syms) $(EXECUTABLE)
+PLUGIN_EXTRA_DEPS	= $(abspath $(srcdir)/backends/platform/dc/plugin.x $(srcdir)/backends/platform/dc/plugin.syms) $(EXECUTABLE) backends/platform/dc/plugin_head.o
 CXXFLAGS			+= -DDYNAMIC_MODULES
-PLUGIN_LDFLAGS		= -ml -m4-single-only -nostartfiles -Wl,-q,-T$(srcdir)/backends/platform/dc/plugin.x,--just-symbols,$(EXECUTABLE),--retain-symbols-file,$(srcdir)/backends/platform/dc/plugin.syms -L$(ronindir)/lib
+PLUGIN_LDFLAGS		= -ml -m4-single-only -nostartfiles -Wl,-q,-T$(srcdir)/backends/platform/dc/plugin.x,--just-symbols,$(EXECUTABLE),--retain-symbols-file,$(srcdir)/backends/platform/dc/plugin.syms -L$(ronindir)/lib backends/platform/dc/plugin_head.o
 PRE_OBJS_FLAGS		:= -Wl,--whole-archive
 POST_OBJS_FLAGS		:= -Wl,--no-whole-archive
 '


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list