diff options
-rw-r--r-- | misc/buildroot/toolchain/nxflat/Makefile | 2 | ||||
-rw-r--r-- | misc/buildroot/toolchain/nxflat/ldnxflat.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/misc/buildroot/toolchain/nxflat/Makefile b/misc/buildroot/toolchain/nxflat/Makefile index 93a0fa288..d60e540eb 100644 --- a/misc/buildroot/toolchain/nxflat/Makefile +++ b/misc/buildroot/toolchain/nxflat/Makefile @@ -34,7 +34,7 @@ ############################################################################ CFLAGS += -Wall -I. -I$(BINUTILS_DIR)/bfd -LDFLAGS += -L$(BINUTILS_DIR)/bfd -L$(BINUTILS_DIR)/libiberty +LDFLAGS += -L$(BINUTILS_DIR)/bfd # -L$(BINUTILS_DIR)/libiberty LIBS = -lbfd -liberty -lz LDNXFLAT_OBJS = ldnxflat.o diff --git a/misc/buildroot/toolchain/nxflat/ldnxflat.c b/misc/buildroot/toolchain/nxflat/ldnxflat.c index 30464fc48..4c1890da4 100644 --- a/misc/buildroot/toolchain/nxflat/ldnxflat.c +++ b/misc/buildroot/toolchain/nxflat/ldnxflat.c @@ -244,13 +244,8 @@ int ngot_offsets; /* Number of GOT offsets in got_offset ***********************************************************************/ static const char default_exe_entry_name[] = "_start"; -static const char dynpath_begin_name[] = "__dynpath_begin"; -static const char dynpath_end_name[] = "__dynpath_end"; -static const char dynexport_begin_name[] = "__dynexport_begin"; -static const char dynexport_end_name[] = "__dynexport_end"; static const char dynimport_begin_name[] = "__dynimport_begin"; static const char dynimport_end_name[] = "__dynimport_end"; -static const char dynloader_name[] = "__dynloader"; /*********************************************************************** * Private Functions @@ -1935,7 +1930,7 @@ static void parse_args(int argc, char **argv) break; case 'e': - entry_name = optarg; + entry_name = strdup(optarg); break; case 'o': |