aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2021-04-17 18:31:17 +0200
committerPavel Labath <pavel@labath.sk>2021-04-21 11:24:43 +0200
commitcd64273f5ed39ec697ff1e20a1fe25ebd3502629 (patch)
treef2fbacc91d111691fb15a8c04f45412bbd8ce603 /flang/lib/Frontend/CompilerInvocation.cpp
parent85740ee108f18e49c1ec64820c721bc76e16d8c9 (diff)
downloadllvm-cd64273f5ed39ec697ff1e20a1fe25ebd3502629.zip
llvm-cd64273f5ed39ec697ff1e20a1fe25ebd3502629.tar.gz
llvm-cd64273f5ed39ec697ff1e20a1fe25ebd3502629.tar.bz2
[lldb/ELF] Fix IDs of synthetic eh_frame symbols
The code used the total number of symbols to create a symbol ID for the synthetic symbols. This is not correct because the IDs of real symbols can be higher than their total number, as we do not add all symbols (and in particular, we never add symbol zero, which is not a real symbol). This meant we could have symbols with duplicate IDs, which caused problems if some relocations were referring to the duplicated IDs. This was the cause of the failure of the test D97786. This patch fixes the code to use the ID of the highest (last) symbol instead.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions