mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: By default, in LLD 16, .lrodata is placed immediately after .rodata. However, .lrodata can be very large in our compiled models, which leads to relocation out-of-range errors for relative relocations. So we place it after other the sections that are referenced from .text using relative relocations. This is the default behavior in GNU ld. Reviewed By: muchulee8, desertfire, khabinov, chenyang78 Differential Revision: D52557846 Pull Request resolved: https://github.com/pytorch/pytorch/pull/117575 Approved by: https://github.com/chenyang78, https://github.com/khabinov
9 lines
430 B
Plaintext
9 lines
430 B
Plaintext
SECTIONS {
|
|
/* By default, in LLD 16, .lrodata is placed immediately after .rodata.
|
|
* However, .lrodata can be very large in our compiled models, which leads to
|
|
* relocation out-of-range errors for relative relocations. So we place it
|
|
* after other the sections that are referenced from .text using relative
|
|
* relocations. This is the default behavior in GNU ld. */
|
|
.lrodata : { *(.lrodata) }
|
|
} INSERT AFTER .bss;
|