2015-08-14 14:12:54 +00:00
|
|
|
//===- Writer.h -------------------------------------------------*- C++ -*-===//
|
2015-07-24 21:03:07 +00:00
|
|
|
//
|
2019-01-19 08:50:56 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-07-24 21:03:07 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_ELF_WRITER_H
|
|
|
|
#define LLD_ELF_WRITER_H
|
|
|
|
|
2019-09-05 16:32:31 +00:00
|
|
|
#include "Config.h"
|
2016-07-12 08:50:42 +00:00
|
|
|
|
2022-08-10 15:31:58 -04:00
|
|
|
namespace lld::elf {
|
2017-02-24 15:07:30 +00:00
|
|
|
class OutputSection;
|
2024-09-23 21:28:14 -07:00
|
|
|
void copySectionsIntoPartitions(Ctx &ctx);
|
2024-09-21 12:00:21 -07:00
|
|
|
template <class ELFT> void writeResult(Ctx &ctx);
|
2016-07-19 09:25:43 +00:00
|
|
|
|
2024-09-23 21:28:14 -07:00
|
|
|
void addReservedSymbols(Ctx &ctx);
|
2024-10-06 19:36:21 -07:00
|
|
|
bool includeInSymtab(Ctx &, const Symbol &);
|
2024-09-29 15:54:28 -07:00
|
|
|
unsigned getSectionRank(Ctx &, OutputSection &osec);
|
2016-07-12 08:50:42 +00:00
|
|
|
|
2022-08-10 15:31:58 -04:00
|
|
|
} // namespace lld::elf
|
2015-07-24 21:03:07 +00:00
|
|
|
|
|
|
|
#endif
|