[ELF] Add more sections to the default section map.
authorShankar Easwaran <shankare@codeaurora.org>
Mon, 17 Jun 2013 02:29:36 +0000 (02:29 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Mon, 17 Jun 2013 02:29:36 +0000 (02:29 +0000)
commitf91031efcfe4e7cb2f6f2701724c8f26d6062e72
tree67a8ca0a0f30a0a44641e1b9cb7798bf488992af
parent3b08dcd4ccd845b5f9053335fbdcd52fc274eb6d
[ELF] Add more sections to the default section map.

This change adds functionality to add more sections like .gcc_except_table,
.data.rel.local, .data.rel.ro into the default section map, so that they are
all merged into appropriate output sections.

This also makes c++ static binaries comparable to what you get with the default
linker.

Adds a test for testing the functionality.

llvm-svn: 184071
lld/lib/ReaderWriter/ELF/DefaultLayout.h
lld/test/elf/X86_64/Inputs/sectionmap.c [new file with mode: 0644]
lld/test/elf/X86_64/Inputs/sectionmap.o [new file with mode: 0644]
lld/test/elf/X86_64/sectionmap.test [new file with mode: 0644]