File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2446,8 +2446,8 @@ SmallVector<PhdrEntry *, 0> Writer<ELFT>::createPhdrs(Partition &part) {
2446
2446
// Segments are contiguous memory regions that has the same attributes
2447
2447
// (e.g. executable or writable). There is one phdr for each segment.
2448
2448
// Therefore, we need to create a new phdr when the next section has
2449
- // compatible flags or is loaded at a discontiguous address or memory region
2450
- // using AT or AT> linker script command, respectively.
2449
+ // incompatible flags or is loaded at a discontiguous address or memory
2450
+ // region using AT or AT> linker script command, respectively.
2451
2451
//
2452
2452
// As an exception, we don't create a separate load segment for the ELF
2453
2453
// headers, even if the first "real" output has an AT or AT> attribute.
@@ -2461,10 +2461,10 @@ SmallVector<PhdrEntry *, 0> Writer<ELFT>::createPhdrs(Partition &part) {
2461
2461
// needed to create a new LOAD)
2462
2462
uint64_t newFlags = computeFlags (sec->getPhdrFlags ());
2463
2463
// When --no-rosegment is specified, RO and RX sections are compatible.
2464
- uint32_t diff = flags ^ newFlags;
2464
+ uint32_t incompatible = flags ^ newFlags;
2465
2465
if (config->singleRoRx && !(newFlags & PF_W))
2466
- diff &= ~PF_X;
2467
- if (diff )
2466
+ incompatible &= ~PF_X;
2467
+ if (incompatible )
2468
2468
load = nullptr ;
2469
2469
2470
2470
bool sameLMARegion =
You can’t perform that action at this time.
0 commit comments