OLD | NEW |
---|---|
1 # Copyright (C) 1995-2007, 2008 Free Software Foundation, Inc. | 1 # Copyright (C) 1995-2007, 2008 Free Software Foundation, Inc. |
2 # This file is part of the GNU C Library. | 2 # This file is part of the GNU C Library. |
3 | 3 |
4 # The GNU C Library is free software; you can redistribute it and/or | 4 # The GNU C Library is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU Lesser General Public | 5 # modify it under the terms of the GNU Lesser General Public |
6 # License as published by the Free Software Foundation; either | 6 # License as published by the Free Software Foundation; either |
7 # version 2.1 of the License, or (at your option) any later version. | 7 # version 2.1 of the License, or (at your option) any later version. |
8 | 8 |
9 # The GNU C Library is distributed in the hope that it will be useful, | 9 # The GNU C Library is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
298 $(objpfx)librtld.os: $(objpfx)dl-allobjs.os $(objpfx)rtld-libc.a | 298 $(objpfx)librtld.os: $(objpfx)dl-allobjs.os $(objpfx)rtld-libc.a |
299 $(LINK.o) -nostdlib -nostartfiles -r -o $@ '-Wl,-(' $^ -lgcc '-Wl,-)' \ | 299 $(LINK.o) -nostdlib -nostartfiles -r -o $@ '-Wl,-(' $^ -lgcc '-Wl,-)' \ |
300 -Wl,-Map,$@.map | 300 -Wl,-Map,$@.map |
301 | 301 |
302 generated += librtld.map librtld.mk rtld-libc.a librtld.os.map | 302 generated += librtld.map librtld.mk rtld-libc.a librtld.os.map |
303 | 303 |
304 z-now-yes = -Wl,-z,now | 304 z-now-yes = -Wl,-z,now |
305 | 305 |
306 $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map) | 306 $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map) |
307 @rm -f $@.lds | 307 @rm -f $@.lds |
308 $(LINK.o) -nostdlib -nostartfiles -shared $(z-now-$(bind-now)) \ | 308 $(LINK.o) -nostdlib -nostartfiles -shared $(z-now-$(bind-now)) \ |
pasko-google - do not use
2011/08/24 16:38:14
would be nice to leave a comment above this line:
khim
2011/08/24 17:03:07
Done.
| |
309 $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \ | 309 $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \ |
310 LC_ALL=C \ | 310 LC_ALL=C \ |
311 » » sed -e '/^=========/,/^=========/!d;/^=========/d'» \ | 311 » » sed -e '/^=========/,/^=========/!d;/^=========/d' \ |
312 -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADE RS;/' \ | 312 -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADE RS;/' \ |
313 -e 's/_end = \.; PROVIDE (end = \.);/& . = DATA_SEGMENT_EN D(.);/' \ | |
314 -e 's/seg_bss PT_LOAD FLAGS(6) ; \/\* read + wr ite \*\///' \ | |
315 -e 's/\. = DATA_SEGMENT_END (\.);//' -e 's/} :seg_bss/}/' \ | |
pasko-google - do not use
2011/08/24 16:38:14
please, wrap the 2-nd -e here to the next line, wo
khim
2011/08/24 17:03:07
Done.
| |
316 -e 's/\. = ALIGN (CONSTANT (MAXPAGESIZE));//' \ | |
317 -e 's/\. = ALIGN (CONSTANT (COMMONPAGESIZE));//' \ | |
313 > $@.lds | 318 > $@.lds |
314 $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ | 319 $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ |
315 $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \ | 320 $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \ |
316 $(filter-out $(map-file),$^) $(load-map-file) \ | 321 $(filter-out $(map-file),$^) $(load-map-file) \ |
317 -Wl,-soname=$(rtld-installed-name) -T $@.lds \ | 322 -Wl,-soname=$(rtld-installed-name) -T $@.lds \ |
318 -Wl,-Ttext,0x20000 | 323 -Wl,-Ttext,0x20000 |
319 rm -f $@.lds | 324 rm -f $@.lds |
320 readelf -s $@ \ | 325 readelf -s $@ \ |
321 | $(AWK) '($$7 ~ /^UND(EF)?$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }' | 326 | $(AWK) '($$7 ~ /^UND(EF)?$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }' |
322 | 327 |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
953 | 958 |
954 $(objpfx)tst-leaks1: $(libdl) | 959 $(objpfx)tst-leaks1: $(libdl) |
955 $(objpfx)tst-leaks1-mem: $(objpfx)tst-leaks1.out | 960 $(objpfx)tst-leaks1-mem: $(objpfx)tst-leaks1.out |
956 $(common-objpfx)malloc/mtrace $(objpfx)tst-leaks1.mtrace > $@ | 961 $(common-objpfx)malloc/mtrace $(objpfx)tst-leaks1.mtrace > $@ |
957 | 962 |
958 tst-leaks1-ENV = MALLOC_TRACE=$(objpfx)tst-leaks1.mtrace | 963 tst-leaks1-ENV = MALLOC_TRACE=$(objpfx)tst-leaks1.mtrace |
959 | 964 |
960 $(objpfx)tst-addr1: $(libdl) | 965 $(objpfx)tst-addr1: $(libdl) |
961 | 966 |
962 $(objpfx)tst-thrlock: $(libdl) $(shared-thread-library) | 967 $(objpfx)tst-thrlock: $(libdl) $(shared-thread-library) |
OLD | NEW |