Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also updates the patches from 2.24. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines | ||
|
||
Likewise, binutils has no idea about any of these new targets either, so we | ||
fix that up too.. now we're able to actually build a real toolchain for | ||
sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more | ||
inept targets than that one, really. Go look, I promise). | ||
|
||
diff --git a/configure b/configure | ||
index 87677bc..2d916f1 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -3812,7 +3812,7 @@ case "${target}" in | ||
or1k*-*-*) | ||
noconfigdirs="$noconfigdirs gdb" | ||
;; | ||
- sh-*-* | sh64-*-*) | ||
+ sh*-*-* | sh64-*-*) | ||
case "${target}" in | ||
sh*-*-elf) | ||
;; | ||
diff --git a/configure.ac b/configure.ac | ||
index 8fe0eca..b10a99f 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -1140,7 +1140,7 @@ case "${target}" in | ||
or1k*-*-*) | ||
noconfigdirs="$noconfigdirs gdb" | ||
;; | ||
- sh-*-* | sh64-*-*) | ||
+ sh*-*-* | sh64-*-*) | ||
case "${target}" in | ||
sh*-*-elf) | ||
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/ld/Makefile.am b/ld/Makefile.am | ||
index 9575f1f..84df0bf 100644 | ||
--- a/ld/Makefile.am | ||
+++ b/ld/Makefile.am | ||
@@ -54,7 +54,7 @@ endif | ||
# We put the scripts in the directory $(scriptdir)/ldscripts. | ||
# We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
# directives need to be different for native and cross linkers. | ||
-scriptdir = $(tooldir)/lib | ||
+scriptdir = $(libdir) | ||
|
||
EMUL = @EMUL@ | ||
EMULATION_OFILES = @EMULATION_OFILES@ | ||
diff --git a/ld/Makefile.in b/ld/Makefile.in | ||
index 9f56ca1..272860f 100644 | ||
--- a/ld/Makefile.in | ||
+++ b/ld/Makefile.in | ||
@@ -388,7 +388,7 @@ AM_CFLAGS = $(WARN_CFLAGS) | ||
# We put the scripts in the directory $(scriptdir)/ldscripts. | ||
# We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
# directives need to be different for native and cross linkers. | ||
-scriptdir = $(tooldir)/lib | ||
+scriptdir = $(libdir) | ||
BASEDIR = $(srcdir)/.. | ||
BFDDIR = $(BASEDIR)/bfd | ||
INCDIR = $(BASEDIR)/include |
22 changes: 22 additions & 0 deletions
22
patches/binutils/2.25/300-012_check_ldrunpath_length.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em | ||
index 137446f..bb8391a 100644 | ||
--- a/ld/emultempl/elf32.em | ||
+++ b/ld/emultempl/elf32.em | ||
@@ -1195,6 +1195,8 @@ fragment <<EOF | ||
&& command_line.rpath == NULL) | ||
{ | ||
lib_path = (const char *) getenv ("LD_RUN_PATH"); | ||
+ if ((lib_path) && (strlen (lib_path) == 0)) | ||
+ lib_path = NULL; | ||
if (gld${EMULATION_NAME}_search_needed (lib_path, &n, | ||
force)) | ||
break; | ||
@@ -1458,6 +1460,8 @@ gld${EMULATION_NAME}_before_allocation (void) | ||
rpath = command_line.rpath; | ||
if (rpath == NULL) | ||
rpath = (const char *) getenv ("LD_RUN_PATH"); | ||
+ if ((rpath) && (strlen (rpath) == 0)) | ||
+ rpath = NULL; | ||
|
||
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) | ||
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) |