George Rimar via llvm-dev
2018-Feb-26 11:11 UTC
[llvm-dev] lld: order of object files to be put into executable
>Hi Quolick, > >I don't know if you are using the ELF or COFF LLD (I do not know the >latter), but at least if you are using the ELF linker, you could use the >--symbol-ordering-file option to put symbols from the object files you care >about next to each other. This orders the input sections from the object >file, based on the requested symbol order. This could be used to achieve >the code locality as suggested by Nicolai. > >Regards, > >JamesOr with use of linkerscript: SECTIONS { .text : { file1.o(.text*) file2.o(.text*) *(.text*) } Though --symbol-ordering-file is a better way probably as it was designed exactly for improving locality and does not rely on using scripts. George.
Maybe Matching Threads
- lld: order of object files to be put into executable
- lld: order of object files to be put into executable
- Doubts on incremental backup and command repetition
- DO NOT REPLY [Bug 5298] New: xattrs and acls do not work well together along with fake-super, even worse on XFS
- [PATCH v2] xfstests: btrfs/316: cross-subvolume sparse copy