| OLD | NEW |
| 1 diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c | 1 diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c |
| 2 --- a/bfd/elf32-i386.c | 2 --- a/bfd/elf32-i386.c |
| 3 +++ b/bfd/elf32-i386.c | 3 +++ b/bfd/elf32-i386.c |
| 4 @@ -3807,7 +3807,7 @@ elf_i386_relocate_section (bfd *output_bfd, | 4 @@ -3807,7 +3807,7 @@ elf_i386_relocate_section (bfd *output_bfd, |
| 5 if (ELF32_R_TYPE (rel->r_info) == R_386_TLS_GD) | 5 if (ELF32_R_TYPE (rel->r_info) == R_386_TLS_GD) |
| 6 { | 6 { |
| 7 unsigned int type; | 7 unsigned int type; |
| 8 - bfd_vma roff; | 8 - bfd_vma roff; |
| 9 + bfd_vma roff = 0; | 9 + bfd_vma roff = 0; |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 +++ b/binutils/Makefile.in | 24 +++ b/binutils/Makefile.in |
| 25 @@ -332,7 +332,7 @@ LIBICONV = @LIBICONV@ | 25 @@ -332,7 +332,7 @@ LIBICONV = @LIBICONV@ |
| 26 LIBINTL = @LIBINTL@ | 26 LIBINTL = @LIBINTL@ |
| 27 LIBINTL_DEP = @LIBINTL_DEP@ | 27 LIBINTL_DEP = @LIBINTL_DEP@ |
| 28 LIBOBJS = @LIBOBJS@ | 28 LIBOBJS = @LIBOBJS@ |
| 29 -LIBS = @LIBS@ | 29 -LIBS = @LIBS@ |
| 30 +LIBS = @LIBS@ $(EXTRA_LIBS) | 30 +LIBS = @LIBS@ $(EXTRA_LIBS) |
| 31 LIBTOOL = @LIBTOOL@ | 31 LIBTOOL = @LIBTOOL@ |
| 32 LIPO = @LIPO@ | 32 LIPO = @LIPO@ |
| 33 LN_S = @LN_S@ | 33 LN_S = @LN_S@ |
| 34 @@ -484,7 +484,8 @@ AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDI
R) \ | |
| 35 @HDEFINES@ \ | |
| 36 @INCINTL@ \ | |
| 37 -DLOCALEDIR="\"$(datadir)/locale\"" \ | |
| 38 - -Dbin_dummy_emulation=$(EMULATION_VECTOR) | |
| 39 + -Dbin_dummy_emulation=$(EMULATION_VECTOR) \ | |
| 40 + -Dmain=nacl_main | |
| 41 | |
| 42 HFILES = \ | |
| 43 arsup.h binemul.h bucomm.h budbg.h \ | |
| 44 diff --git a/gas/Makefile.in b/gas/Makefile.in | 34 diff --git a/gas/Makefile.in b/gas/Makefile.in |
| 45 --- a/gas/Makefile.in | 35 --- a/gas/Makefile.in |
| 46 +++ b/gas/Makefile.in | 36 +++ b/gas/Makefile.in |
| 47 @@ -197,7 +197,7 @@ LIBINTL = @LIBINTL@ | 37 @@ -197,7 +197,7 @@ LIBINTL = @LIBINTL@ |
| 48 LIBINTL_DEP = @LIBINTL_DEP@ | 38 LIBINTL_DEP = @LIBINTL_DEP@ |
| 49 LIBM = @LIBM@ | 39 LIBM = @LIBM@ |
| 50 LIBOBJS = @LIBOBJS@ | 40 LIBOBJS = @LIBOBJS@ |
| 51 -LIBS = @LIBS@ | 41 -LIBS = @LIBS@ |
| 52 +LIBS = @LIBS@ $(EXTRA_LIBS) | 42 +LIBS = @LIBS@ $(EXTRA_LIBS) |
| 53 LIBTOOL = @LIBTOOL@ | 43 LIBTOOL = @LIBTOOL@ |
| 54 LIPO = @LIPO@ | 44 LIPO = @LIPO@ |
| 55 LN_S = @LN_S@ | 45 LN_S = @LN_S@ |
| 56 @@ -640,7 +640,8 @@ INCDIR = $(BASEDIR)/include | |
| 57 # subdirectory rather than in the source directory. | |
| 58 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \ | |
| 59 -I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ \ | |
| 60 - -DLOCALEDIR="\"$(datadir)/locale\"" | |
| 61 + -DLOCALEDIR="\"$(datadir)/locale\"" \ | |
| 62 + -Dmain=nacl_main | |
| 63 | |
| 64 | |
| 65 # How to link with both our special library facilities | |
| 66 diff --git a/ld/Makefile.in b/ld/Makefile.in | 46 diff --git a/ld/Makefile.in b/ld/Makefile.in |
| 67 --- a/ld/Makefile.in | 47 --- a/ld/Makefile.in |
| 68 +++ b/ld/Makefile.in | 48 +++ b/ld/Makefile.in |
| 69 @@ -448,7 +448,8 @@ TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/
doc \ | 49 @@ -890,7 +890,7 @@ ld_new_SOURCES = ldgram.y ldlex-wrapper.c lexsup.c ldlang.c
mri.c ldctor.c ldmai |
| 70 | |
| 71 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \ | |
| 72 » @INCINTL@ $(HDEFINES) $(CFLAGS) $(PLUGIN_CFLAGS) \ | |
| 73 -» -DLOCALEDIR="\"$(datadir)/locale\"" | |
| 74 +» -DLOCALEDIR="\"$(datadir)/locale\"" \ | |
| 75 +» -Dmain=nacl_main | |
| 76 | |
| 77 BFDLIB = ../bfd/libbfd.la | |
| 78 LIBIBERTY = ../libiberty/libiberty.a | |
| 79 @@ -890,7 +891,7 @@ ld_new_SOURCES = ldgram.y ldlex-wrapper.c lexsup.c ldlang.c
mri.c ldctor.c ldmai | |
| 80 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c $(PLUGIN_C
) | 50 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c $(PLUGIN_C
) |
| 81 | 51 |
| 82 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBI
BERTY) $(LIBINTL_DEP) | 52 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBI
BERTY) $(LIBINTL_DEP) |
| 83 -ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY)
$(LIBINTL) | 53 -ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY)
$(LIBINTL) |
| 84 +ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY)
$(LIBINTL) $(EXTRA_LIBS) | 54 +ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY)
$(LIBINTL) $(EXTRA_LIBS) |
| 85 | 55 |
| 86 # A test program for C++ constructors and destructors. | 56 # A test program for C++ constructors and destructors. |
| 87 # This test is now in the testsuite. | 57 # This test is now in the testsuite. |
| 88 @@ -1072,7 +1073,10 @@ deffilep.h: deffilep.c | 58 @@ -1072,7 +1072,10 @@ deffilep.h: deffilep.c |
| 89 else :; fi | 59 else :; fi |
| 90 ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES) | 60 ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES) |
| 91 @rm -f ld-new$(EXEEXT) | 61 @rm -f ld-new$(EXEEXT) |
| 92 - $(LINK) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS) | 62 - $(LINK) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS) |
| 93 + # ./ldscripts/* will be read during this link and it messes up the | 63 + # ./ldscripts/* will be read during this link and it messes up the |
| 94 + # link result because ./ldscripts contains the linker script for | 64 + # link result because ./ldscripts contains the linker script for |
| 95 + # statically linked binaries. So, we temporary rename it. | 65 + # statically linked binaries. So, we temporary rename it. |
| 96 + mv ldscripts ldscripts.tmp && ($(LINK) $(ld_new_OBJECTS) $(ld_new_LDADD)
$(LIBS) || (mv bar foo && false)) && mv ldscripts.tmp ldscripts | 66 + mv ldscripts ldscripts.tmp && ($(LINK) $(ld_new_OBJECTS) $(ld_new_LDADD)
$(LIBS) || (mv bar foo && false)) && mv ldscripts.tmp ldscripts |
| 97 | 67 |
| 98 mostlyclean-compile: | 68 mostlyclean-compile: |
| 99 -rm -f *.$(OBJEXT) | 69 -rm -f *.$(OBJEXT) |
| OLD | NEW |