aboutsummaryrefslogtreecommitdiff
path: root/gas/sb.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-10-09 21:25:25 +1030
committerAlan Modra <amodra@gmail.com>2019-10-09 21:53:16 +1030
commit8610e0fd93ea253f9beb9ebb6e50e8807ed83327 (patch)
tree21ce4146445fcdc917052e396ba0e5050b483a95 /gas/sb.h
parent6d9d6da48e84a65871a9d72fa785105d603990a6 (diff)
downloadgdb-8610e0fd93ea253f9beb9ebb6e50e8807ed83327.zip
gdb-8610e0fd93ea253f9beb9ebb6e50e8807ed83327.tar.gz
gdb-8610e0fd93ea253f9beb9ebb6e50e8807ed83327.tar.bz2
PR25081, Discrepancy between VMA and LMA after ALIGN
The testcase in the PR has two empty output sections, .sec1 with an ALIGN and symbol assignment, and .sec2 just with an empty input section. The symbol assignment results in .sec1 being kept, but because it is empty this section doesn't take space from the memory region as you might expect from the ALIGN. Instead the next section .sec2, has vma/lma as if .sec1 wasn't present. However, .sec2 is discarded and os->ignored set, which unfortunately meant that dot wasn't set from .sec2 vma. That in turn results in .sec2 lma being set incorrectly. That vma/lma difference is then propagated to .sec3 where it is seen as an overlap. PR 25081 * ldlang.c (lang_size_sections_1): Set lma from section vma rather than dot.
Diffstat (limited to 'gas/sb.h')
0 files changed, 0 insertions, 0 deletions