Commit ac9251e4 authored by Fangrui Song's avatar Fangrui Song Committed by Nick Desaulniers
Browse files

[UPSTREAM][ELF] Set SectionBase::partition in processSectionCommands

Fixes PR43461 (regression caused by D67504)

The partition field of a SECTIONS-specified section is not set after
D67504. The 0 value affects findSection() which checks if the partition
field is 1.

So `Out::initArray = findSection(".init_array")` is null, and
DT_INIT_ARRAYSZ is not set.

Reviewed By: peter.smith

Differential Revision: https://reviews.llvm.org/D68087

llvm-svn: 372996
(cherry picked from commit f1e14519)

Change-Id: Ibdf629ea56f9200dfcc08c532e27b06b2cfe5abc
parent 4261af25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment