diff options
author | Fangrui Song <i@maskray.me> | 2022-05-04 01:10:45 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-05-04 01:10:46 -0700 |
commit | 5a44980f0a8bb2c7dafe9a9f5e5a17699e65cc3d (patch) | |
tree | 294b93d09fed1ab21f0d669f0e7bff15b999092f /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 37a147352457c690a6130a5d20ef381037fc3548 (diff) | |
download | llvm-5a44980f0a8bb2c7dafe9a9f5e5a17699e65cc3d.zip llvm-5a44980f0a8bb2c7dafe9a9f5e5a17699e65cc3d.tar.gz llvm-5a44980f0a8bb2c7dafe9a9f5e5a17699e65cc3d.tar.bz2 |
[ELF] Support custom sections between DATA_SEGMENT_ALIGN and DATA_SEGMENT_RELRO_END
We currently hard code RELRO sections. When a custom section is between
DATA_SEGMENT_ALIGN and DATA_SEGMENT_RELRO_END, we may report a spurious
`error: section: ... is not contiguous with other relro sections`. GNU ld
makes such sections RELRO.
glibc recently switched to default --with-default-link=no. This configuration
places `__libc_atexit` and others between DATA_SEGMENT_ALIGN and
DATA_SEGMENT_RELRO_END. This patch allows such a ld.bfd --verbose
linker script to be fed into lld.
Reviewed By: peter.smith
Differential Revision: https://reviews.llvm.org/D124656
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions