SectionLoadList has a section-to-address map (m_sect_to_addr) and an address-to-section map (m_addr_to_sect). When the load address of a section is updated, the old entry from m_addr_to_sect would never be cleared, resulting in incorrect address-to-section address lookups from that point forward. Differential Revision: https://reviews.llvm.org/D130534 rdar://97308773
6 lines
98 B
C
6 lines
98 B
C
int first[2048] = { 5 };
|
|
int second[2048] = { 6 };
|
|
int main() {
|
|
return first[0] + second[0];
|
|
}
|