@@ -299,10 +299,6 @@ std::string InputSectionBase::getLocation(uint64_t offset) const {
299299 std::string secAndOffset =
300300 (name + " +0x" + Twine::utohexstr (offset) + " )" ).str ();
301301
302- // We don't have file for synthetic sections.
303- if (file == nullptr )
304- return (ctx.arg .outputFile + " :(" + secAndOffset).str ();
305-
306302 std::string filename = toString (file);
307303 if (Defined *d = getEnclosingFunction (offset))
308304 return filename + " :(function " + toString (*d) + " : " + secAndOffset;
@@ -1430,11 +1426,12 @@ MergeInputSection::MergeInputSection(ObjFile<ELFT> &f,
14301426 StringRef name)
14311427 : InputSectionBase(f, header, name, InputSectionBase::Merge) {}
14321428
1433- MergeInputSection::MergeInputSection (uint64_t flags, uint32_t type,
1429+ MergeInputSection::MergeInputSection (Ctx &ctx, uint64_t flags, uint32_t type,
14341430 uint64_t entsize, ArrayRef<uint8_t > data,
14351431 StringRef name)
1436- : InputSectionBase(nullptr , flags, type, entsize, /* Link*/ 0 , /* Info*/ 0 ,
1437- /* Alignment*/ entsize, data, name, SectionBase::Merge) {}
1432+ : InputSectionBase(ctx.internalFile, flags, type, entsize, /* link=*/ 0 ,
1433+ /* info=*/ 0 ,
1434+ /* alignment=*/ entsize, data, name, SectionBase::Merge) {}
14381435
14391436// This function is called after we obtain a complete list of input sections
14401437// that need to be linked. This is responsible to split section contents
0 commit comments