diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2016-11-09 21:37:06 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2016-11-09 21:37:06 +0000 |
| commit | fa03b0fafa33e6e279bd90f0e5f7ab6547017d93 (patch) | |
| tree | a5c49060eb9196a176cd5f23e2cb8f308bd98dc4 /lld/ELF/InputFiles.cpp | |
| parent | ce02cf0099e912e31300d58477d65ae26ea13ef8 (diff) | |
| download | bcm5719-llvm-fa03b0fafa33e6e279bd90f0e5f7ab6547017d93.tar.gz bcm5719-llvm-fa03b0fafa33e6e279bd90f0e5f7ab6547017d93.zip | |
[ELF][MIPS] Convert .MIPS.abiflags section to synthetic input section
Previously, we have both input and output section for .MIPS.abiflags.
Now we have only one class for .MIPS.abiflags, which is MipsAbiFlagsSection.
This class is a synthetic input section.
.MIPS.abiflags sections are handled as regular sections until
the control reaches Writer. Writer then aggregates all sections
whose type is SHT_MIPS_ABIFLAGS to create a single synthesized
input section. The synthesized section is then processed normally
as if it came from an input file.
llvm-svn: 286398
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index e7e2c5f4824..75f683f518b 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -340,12 +340,6 @@ elf::ObjectFile<ELFT>::createInputSection(const Elf_Shdr &Sec, // FIXME: ARM meta-data section. At present attributes are ignored, // they can be used to reason about object compatibility. return &InputSection<ELFT>::Discarded; - case SHT_MIPS_ABIFLAGS: - if (MipsAbiFlags) - fatal(getFilename(this) + - ": multiple SHT_MIPS_ABIFLAGS sections are not allowed"); - MipsAbiFlags.reset(new MipsAbiFlagsInputSection<ELFT>(this, &Sec, Name)); - return MipsAbiFlags.get(); case SHT_RELA: case SHT_REL: { // This section contains relocation information. |

