diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch b/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch index 4b4d73d21d..28daf58f74 100644 --- a/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch +++ b/meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | From d057b215f114f6158b4010ab44a19cae9dcc8386 Mon Sep 17 00:00:00 2001 | 1 | From 3bbec749ec9fe681ade6812c48c541a752fcffd5 Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
3 | Date: Wed, 19 Feb 2020 09:51:16 -0800 | 3 | Date: Wed, 19 Feb 2020 09:51:16 -0800 |
4 | Subject: [PATCH] binutils-nativesdk: Search for alternative ld.so.conf in SDK | 4 | Subject: [PATCH 03/17] binutils-nativesdk: Search for alternative ld.so.conf |
5 | installation | 5 | in SDK installation |
6 | 6 | ||
7 | We need binutils to look at our ld.so.conf file within the SDK to ensure | 7 | We need binutils to look at our ld.so.conf file within the SDK to ensure |
8 | we search the SDK's libdirs as well as those from the host system. | 8 | we search the SDK's libdirs as well as those from the host system. |
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
29 | 5 files changed, 7 insertions(+), 3 deletions(-) | 29 | 5 files changed, 7 insertions(+), 3 deletions(-) |
30 | 30 | ||
31 | diff --git a/ld/Makefile.am b/ld/Makefile.am | 31 | diff --git a/ld/Makefile.am b/ld/Makefile.am |
32 | index 4a9b8404b7..1c132d3ce4 100644 | 32 | index 02c4fc16395..a5762227f0a 100644 |
33 | --- a/ld/Makefile.am | 33 | --- a/ld/Makefile.am |
34 | +++ b/ld/Makefile.am | 34 | +++ b/ld/Makefile.am |
35 | @@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@ | 35 | @@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@ |
@@ -43,10 +43,10 @@ index 4a9b8404b7..1c132d3ce4 100644 | |||
43 | NO_WERROR = @NO_WERROR@ | 43 | NO_WERROR = @NO_WERROR@ |
44 | AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) | 44 | AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) |
45 | diff --git a/ld/Makefile.in b/ld/Makefile.in | 45 | diff --git a/ld/Makefile.in b/ld/Makefile.in |
46 | index 46d9b14077..e453bc1b33 100644 | 46 | index 2fe12e14f63..8f0c83ac8d2 100644 |
47 | --- a/ld/Makefile.in | 47 | --- a/ld/Makefile.in |
48 | +++ b/ld/Makefile.in | 48 | +++ b/ld/Makefile.in |
49 | @@ -555,7 +555,8 @@ ZLIB = @zlibdir@ -lz | 49 | @@ -548,7 +548,8 @@ ZLIB = @zlibdir@ -lz |
50 | ZLIBINC = @zlibinc@ | 50 | ZLIBINC = @zlibinc@ |
51 | ELF_CLFAGS = -DELF_LIST_OPTIONS=@elf_list_options@ \ | 51 | ELF_CLFAGS = -DELF_LIST_OPTIONS=@elf_list_options@ \ |
52 | -DELF_SHLIB_LIST_OPTIONS=@elf_shlib_list_options@ \ | 52 | -DELF_SHLIB_LIST_OPTIONS=@elf_shlib_list_options@ \ |
@@ -55,25 +55,25 @@ index 46d9b14077..e453bc1b33 100644 | |||
55 | + -DSYSCONFDIR="\"$(sysconfdir)\"" | 55 | + -DSYSCONFDIR="\"$(sysconfdir)\"" |
56 | 56 | ||
57 | AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) | 57 | AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) |
58 | @ENABLE_PLUGINS_FALSE@PLUGIN_C = | 58 | |
59 | diff --git a/ld/ldelf.c b/ld/ldelf.c | 59 | diff --git a/ld/ldelf.c b/ld/ldelf.c |
60 | index 2e27cf48a8..a095d6aac5 100644 | 60 | index bada3ade2d7..b4784009d7a 100644 |
61 | --- a/ld/ldelf.c | 61 | --- a/ld/ldelf.c |
62 | +++ b/ld/ldelf.c | 62 | +++ b/ld/ldelf.c |
63 | @@ -907,7 +907,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force, | 63 | @@ -911,7 +911,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force, |
64 | 64 | ||
65 | info.path = NULL; | 65 | info.path = NULL; |
66 | info.len = info.alloc = 0; | 66 | info.len = info.alloc = 0; |
67 | - tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", | 67 | - tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", |
68 | + tmppath = concat (ld_sysconfdir, "/ld.so.conf", | 68 | + tmppath = concat (ld_sysconfdir, "/etc/ld.so.conf", |
69 | (const char *) NULL); | 69 | (const char *) NULL); |
70 | if (!ldelf_parse_ld_so_conf (&info, tmppath)) | 70 | if (!ldelf_parse_ld_so_conf (&info, tmppath)) |
71 | { | 71 | { |
72 | diff --git a/ld/ldmain.c b/ld/ldmain.c | 72 | diff --git a/ld/ldmain.c b/ld/ldmain.c |
73 | index c4af10f4e9..da1ad17763 100644 | 73 | index 08be9030cb5..f5c5a336320 100644 |
74 | --- a/ld/ldmain.c | 74 | --- a/ld/ldmain.c |
75 | +++ b/ld/ldmain.c | 75 | +++ b/ld/ldmain.c |
76 | @@ -69,6 +69,7 @@ char *program_name; | 76 | @@ -70,6 +70,7 @@ char *program_name; |
77 | 77 | ||
78 | /* The prefix for system library directories. */ | 78 | /* The prefix for system library directories. */ |
79 | const char *ld_sysroot; | 79 | const char *ld_sysroot; |
@@ -82,7 +82,7 @@ index c4af10f4e9..da1ad17763 100644 | |||
82 | /* The canonical representation of ld_sysroot. */ | 82 | /* The canonical representation of ld_sysroot. */ |
83 | char *ld_canon_sysroot; | 83 | char *ld_canon_sysroot; |
84 | diff --git a/ld/ldmain.h b/ld/ldmain.h | 84 | diff --git a/ld/ldmain.h b/ld/ldmain.h |
85 | index 0f05821d1e..54c36a94ce 100644 | 85 | index ac7db5720d5..1cbe1771912 100644 |
86 | --- a/ld/ldmain.h | 86 | --- a/ld/ldmain.h |
87 | +++ b/ld/ldmain.h | 87 | +++ b/ld/ldmain.h |
88 | @@ -23,6 +23,7 @@ | 88 | @@ -23,6 +23,7 @@ |
@@ -93,3 +93,6 @@ index 0f05821d1e..54c36a94ce 100644 | |||
93 | extern char *ld_canon_sysroot; | 93 | extern char *ld_canon_sysroot; |
94 | extern int ld_canon_sysroot_len; | 94 | extern int ld_canon_sysroot_len; |
95 | extern FILE *saved_script_handle; | 95 | extern FILE *saved_script_handle; |
96 | -- | ||
97 | 2.28.0 | ||
98 | |||