[PATCH] D74339: Make .rodata* and .eh_frame* the last of all PROGBITS sections.
Toby Pohlen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 09:10:40 PST 2020
pohlen created this revision.
pohlen added reviewers: ruiu, MaskRay.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Some software vendors (such as NVidia) ship proprietary program code for specialized hardware (e.g. GPUs) in vendor-specific PROGBITS sections (e.g. .nv_fatbin). Before this change, these section may have been placed between .rodata and .text, which leads to relocation overflows even when the actual program code is small because these vendor-specific sections can be quite big (e.g. .nv_fatbin can be >1GiB when including support for various GPU architectures).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74339
Files:
lld/ELF/Writer.cpp
lld/test/ELF/nvidia-sections.s
lld/test/ELF/section-name.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74339.243590.patch
Type: text/x-patch
Size: 3552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200210/78f42361/attachment.bin>
More information about the llvm-commits
mailing list