Add a file comment to SyntheticSections.h.

llvm-svn: 292980
This commit is contained in:
Rui Ueyama 2017-01-24 21:35:25 +00:00
parent a5eb1689dc
commit 8981f3aacf

View File

@ -6,6 +6,21 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Synthetic sections represent chunks of linker-created data. If you
// need to create a chunk of data that to be included in some section
// in the result, you probably want to create it as a synthetic section.
//
// In reality, there are a few linker-synthesized chunks that are not
// of synthetic sections, such as thunks. But we are rewriting them so
// that eventually they are represented as synthetic sections.
//
// Synthetic sections are designed as input sections as opposed to
// output sections because we want to allow them to be manipulated
// using linker scripts just like other input sections from regular
// files.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_ELF_SYNTHETIC_SECTION_H
#define LLD_ELF_SYNTHETIC_SECTION_H