Skip to content

Commit 1f09d05

Browse files
committed
Changes per review
1 parent 5cad356 commit 1f09d05

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lld/ELF/Arch/Hexagon.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "Symbols.h"
1212
#include "SyntheticSections.h"
1313
#include "Target.h"
14-
#include "Thunks.h"
1514
#include "lld/Common/ErrorHandler.h"
1615
#include "llvm/ADT/SmallVector.h"
1716
#include "llvm/BinaryFormat/ELF.h"

lld/ELF/Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ struct UndefinedDiag {
568568
// a partition.
569569
struct InStruct {
570570
std::unique_ptr<InputSection> attributes;
571-
std::unique_ptr<SyntheticSection> riscvAttributes;
572571
std::unique_ptr<SyntheticSection> hexagonAttributes;
572+
std::unique_ptr<SyntheticSection> riscvAttributes;
573573
std::unique_ptr<BssSection> bss;
574574
std::unique_ptr<BssSection> bssRelRo;
575575
std::unique_ptr<SyntheticSection> gnuProperty;

lld/ELF/Driver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,14 +3446,14 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
34463446
if (!ctx.arg.relocatable)
34473447
combineEhSections(ctx);
34483448

3449-
// Merge .riscv.attributes sections.
3450-
if (ctx.arg.emachine == EM_RISCV)
3451-
mergeRISCVAttributesSections(ctx);
3452-
34533449
// Merge .hexagon.attributes sections.
34543450
if (ctx.arg.emachine == EM_HEXAGON)
34553451
mergeHexagonAttributesSections(ctx);
34563452

3453+
// Merge .riscv.attributes sections.
3454+
if (ctx.arg.emachine == EM_RISCV)
3455+
mergeRISCVAttributesSections(ctx);
3456+
34573457
{
34583458
llvm::TimeTraceScope timeScope("Assign sections");
34593459

0 commit comments

Comments
 (0)