diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/trylink | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/trylink b/scripts/trylink index fc87df032..6292dc659 100755 --- a/scripts/trylink +++ b/scripts/trylink | |||
@@ -19,18 +19,16 @@ debug=false | |||
19 | # List of files to link: | 19 | # List of files to link: |
20 | # $l_list == --start-group -llib1 -llib2 --end-group | 20 | # $l_list == --start-group -llib1 -llib2 --end-group |
21 | # --start-group $O_FILES $A_FILES --end-group | 21 | # --start-group $O_FILES $A_FILES --end-group |
22 | # or for shlib: | ||
23 | # --start-group --whole-archive $A_FILES --no-whole-archive --end-group | ||
24 | # otherwise we don't pull in all parts of *.a files. Now we pull in too much. | ||
25 | # FIXME: make it work without --whole-archive, or better, with --gc-sections. | ||
26 | # | 22 | # |
27 | # Shared library link: | 23 | # Shared library link: |
28 | # -shared self-explanatory | 24 | # -shared self-explanatory |
29 | # -fPIC position-independent code | 25 | # -fPIC position-independent code |
30 | # -Wl,--enable-new-dtags ? | 26 | # --enable-new-dtags ? |
31 | # -Wl,-z,combreloc ? | 27 | # -z,combreloc ? |
32 | # -Wl,-soname="libbusybox.so.$BB_VER" | 28 | # -soname="libbusybox.so.$BB_VER" |
33 | # -static Not used, but may be useful! manpage: | 29 | # --undefined=libbusybox_main Seed name to start pulling from |
30 | # (otherwise we'll need --whole-archive) | ||
31 | # -static Not used, but may be useful! manpage: | ||
34 | # "... This option can be used with -shared. | 32 | # "... This option can be used with -shared. |
35 | # Doing so means that a shared library | 33 | # Doing so means that a shared library |
36 | # is being created but that all of the library's | 34 | # is being created but that all of the library's |
@@ -174,9 +172,10 @@ if test "$CONFIG_BUILD_LIBBUSYBOX" = y; then | |||
174 | -Wl,--enable-new-dtags \ | 172 | -Wl,--enable-new-dtags \ |
175 | -Wl,-z,combreloc \ | 173 | -Wl,-z,combreloc \ |
176 | -Wl,-soname="libbusybox.so.$BB_VER" \ | 174 | -Wl,-soname="libbusybox.so.$BB_VER" \ |
175 | -Wl,--undefined=libbusybox_main \ | ||
177 | -Wl,--sort-common \ | 176 | -Wl,--sort-common \ |
178 | -Wl,--sort-section -Wl,alignment \ | 177 | -Wl,--sort-section -Wl,alignment \ |
179 | -Wl,--start-group -Wl,--whole-archive $A_FILES -Wl,--no-whole-archive -Wl,--end-group \ | 178 | -Wl,--start-group $A_FILES -Wl,--end-group \ |
180 | $l_list \ | 179 | $l_list \ |
181 | -Wl,--warn-common \ | 180 | -Wl,--warn-common \ |
182 | -Wl,-Map -Wl,$EXE.map \ | 181 | -Wl,-Map -Wl,$EXE.map \ |