diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-22 02:00:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-22 02:00:04 +0200 |
commit | 663d1da1e68b15397c00d6a094f78c2cf08358ea (patch) | |
tree | 7f132caff445a1ed81529af1d3edd45f4515ef0a | |
parent | 7ff24bd5fb37c58d9e41743a910df147357dda61 (diff) | |
download | busybox-w32-663d1da1e68b15397c00d6a094f78c2cf08358ea.tar.gz busybox-w32-663d1da1e68b15397c00d6a094f78c2cf08358ea.tar.bz2 busybox-w32-663d1da1e68b15397c00d6a094f78c2cf08358ea.zip |
scripts/trylink: document DATA_SEGMENT_ALIGN() hack
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | scripts/trylink | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/trylink b/scripts/trylink index 15435f009..129570a60 100755 --- a/scripts/trylink +++ b/scripts/trylink | |||
@@ -209,6 +209,16 @@ else | |||
209 | # *(.bss SORT_BY_ALIGNMENT(.bss.*) .gnu.linkonce.b.*) | 209 | # *(.bss SORT_BY_ALIGNMENT(.bss.*) .gnu.linkonce.b.*) |
210 | # This will eliminate most of the padding (~3kb). | 210 | # This will eliminate most of the padding (~3kb). |
211 | # Hmm, "ld --sort-section alignment" should do it too. | 211 | # Hmm, "ld --sort-section alignment" should do it too. |
212 | # | ||
213 | # There is a ld hack which is meant to decrease disk usage | ||
214 | # at the cost of more RAM usage (??!!) in standard ld script: | ||
215 | # /* Adjust the address for the data segment. We want to adjust up to | ||
216 | # the same address within the page on the next page up. */ | ||
217 | # . = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1)); . = DATA_SEGMENT_ALIGN (0x1000, 0x1000); | ||
218 | # Replace it with: | ||
219 | # . = ALIGN (0x1000); . = DATA_SEGMENT_ALIGN (0x1000, 0x1000); | ||
220 | # to unconditionally align .data to the next page boundary, | ||
221 | # instead of "next page, plus current offset in this page" | ||
212 | try $CC $CFLAGS $LDFLAGS \ | 222 | try $CC $CFLAGS $LDFLAGS \ |
213 | -o $EXE \ | 223 | -o $EXE \ |
214 | $SORT_COMMON \ | 224 | $SORT_COMMON \ |