summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/DebugSymbolRVASubsection.cpp
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2017-11-22 12:04:21 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2017-11-22 12:04:21 +0000
commitf70c5beb228e44861557f6757bbd2f983c964b6b (patch)
treec52a9de3c5517f712013264e85b27b4f20ccadb4 /llvm/lib/DebugInfo/CodeView/DebugSymbolRVASubsection.cpp
parent72e5d69826f93410d6c4ab07e01da9bebf7f4c50 (diff)
downloadbcm5719-llvm-f70c5beb228e44861557f6757bbd2f983c964b6b.tar.gz
bcm5719-llvm-f70c5beb228e44861557f6757bbd2f983c964b6b.zip
[ELF] Fix DT_MIPS_LOCAL_GOTNO value for thunks and linker scripts
The MIPS GOT section has a number of local entries based on the number of pages needed for output sections referenced by GOT page relocations. The number is recorded in the DT_MIPS_LOCAL_GOTNO dynamic section tag. However, the dynamic tag is added before assignAddresses has been called, meaning that any section size used to calculate the value will not include size modifications caused by, for example, linker scripts and thunks. This change moves the calculation of DT_MIPS_LOCAL_GOTNO until writeTo, by which time the output section sizes have been finalized. Reviewers: ruiu, rafael Differential Revision: https://reviews.llvm.org/D39493 llvm-svn: 318828
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugSymbolRVASubsection.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud