mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
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. svn-id: r55149
This commit is contained in:
parent
31ffb39939
commit
176be9adad
6
backends/platform/dc/plugin_head.S
Normal file
6
backends/platform/dc/plugin_head.S
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
.section .ctors,"aw",@progbits
|
||||
.section .dtors,"aw",@progbits
|
||||
|
||||
.end
|
||||
|
4
configure
vendored
4
configure
vendored
@ -2140,9 +2140,9 @@ _mak_plugins='
|
||||
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
|
||||
'
|
||||
|
Loading…
x
Reference in New Issue
Block a user