commit | e3e5e9cef258f2048fa9e736067f3d36e7f82c42 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Tue Dec 04 18:47:44 2018 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Tue Dec 04 18:47:44 2018 +0000 |
tree | 5486be640af2046ffd688847a3b2761a379085be | |
parent | 3e5effd0636beb84e0c4b0a2668bc8565033ce6c [diff] |
ELF: allow non allocated sections to go into allocated sections Patch from Andrew Kelley. For context, see https://bugs.llvm.org/show_bug.cgi?id=39862 The use case is embedded / OS programming where the kernel wants access to its own debug info via mapped dwarf info. I have a proof of concept of this working, using this linker script snippet: .rodata : ALIGN(4K) { *(.rodata) __debug_info_start = .; KEEP(*(.debug_info)) __debug_info_end = .; __debug_abbrev_start = .; KEEP(*(.debug_abbrev)) __debug_abbrev_end = .; __debug_str_start = .; KEEP(*(.debug_str)) __debug_str_end = .; __debug_line_start = .; KEEP(*(.debug_line)) __debug_line_end = .; __debug_ranges_start = .; KEEP(*(.debug_ranges)) __debug_ranges_end = .; } Differential revision: https://reviews.llvm.org/D55276 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@348291 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.