diff options
author | Fangrui Song <i@maskray.me> | 2023-09-20 09:06:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 09:06:45 -0700 |
commit | 0de0b6dded4752040350feb9c81415d82478d065 (patch) | |
tree | fb251855a5c156f5a381ac25f1fb5cd1e94cd7ac /llvm/lib/ProfileData | |
parent | 434907e474a823ee4d96ca0aa4f30992fb03a3b8 (diff) | |
download | llvm-0de0b6dded4752040350feb9c81415d82478d065.zip llvm-0de0b6dded4752040350feb9c81415d82478d065.tar.gz llvm-0de0b6dded4752040350feb9c81415d82478d065.tar.bz2 |
[ELF] Postpone "unable to move location counter backward" error (#66854)
The size of .ARM.exidx may shrink across `assignAddress` calls. It is
possible
that the initial iteration has a larger location counter, causing
`__code_size =
__code_end - .; osec : { . += __code_size; }` to report an error, while
the error would
have been suppressed for subsequent `assignAddress` iterations.
Other sections like .relr.dyn may change sizes across `assignAddress`
calls as
well. However, their initial size is zero, so it is difficiult to
trigger a
similar error.
Similar to https://reviews.llvm.org/D152170, postpone the error
reporting.
Fix #66836. While here, add more information to the error message.
Diffstat (limited to 'llvm/lib/ProfileData')
0 files changed, 0 insertions, 0 deletions