[ET Trac] #1568: Reduce overhead of Formaline
Roland Haas
trac-noreply at einsteintoolkit.org
Mon Feb 14 13:38:00 CST 2022
#1568: Reduce overhead of Formaline
Reporter: Ian Hinder
Status: new
Milestone:
Version: development version
Type: enhancement
Priority: minor
Component: Cactus
Comment (by Roland Haas):
[https://bitbucket.org/einsteintoolkit/tickets/issues/1568/reduce-overhead-of-formaline#comment-61834235](https://bitbucket.org/einsteintoolkit/tickets/issues/1568/reduce-overhead-of-formaline#comment-61834235) uses GNU ld to include files.
Using regular ld one gets something like:
```
rhaas at 8992d193:~/tmp$ ld -r -b binary -o foo.o xcts.pdf
rhaas at 8992d193:~/tmp$ file foo.o
foo.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
rhaas at 8992d193:~/tmp$ nm foo.o
000000000002bebd D _binary_xcts_pdf_end
000000000002bebd A _binary_xcts_pdf_size
0000000000000000 D _binary_xcts_pdf_start
```
but eg the xalt wrapper linker does:
```
rhaas at h2ologin4:~$ ld -r -b binary -o foo.o foo.tar.gz
rhaas at h2ologin4:~$ nm foo.o
00000000c0421df1 D _binary__tmp_rhaas_2022_02_14_13_22_52_a8ab3fb3_e7ae_4131_a8a4_7ae6143cb4c6_xalt_o_end
0000000000000481 A _binary__tmp_rhaas_2022_02_14_13_22_52_a8ab3fb3_e7ae_4131_a8a4_7ae6143cb4c6_xalt_o_size
00000000c0421970 D _binary__tmp_rhaas_2022_02_14_13_22_52_a8ab3fb3_e7ae_4131_a8a4_7ae6143cb4c6_xalt_o_start
00000000c0421970 D _binary_foo.tar.gz_end
00000000c0421970 A _binary_foo.tar.gz_size
0000000000000000 D _binary_foo.tar.gz_start
```
ie there is “extra” struff being included. So we must ensure that we use the actual GNU linker. We need a special variable for this since in Cactus `$LD` is usually `$CXX`.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1568/reduce-overhead-of-formaline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20220214/f18e2f76/attachment.html
More information about the Trac
mailing list