File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -568,8 +568,8 @@ struct UndefinedDiag {
568568// a partition.
569569struct 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;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments