Files
clang-p2996/lld/test/elf/X86_64/Inputs/sectionmap.c
Shankar Easwaran f91031efcf [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
2013-06-17 02:29:36 +00:00

5 lines
243 B
C

int foo __attribute__((section(".gcc_except_table.foo"))) = 4;
const int bar __attribute__((section(".data.rel.local"))) = 2;
const int baz __attribute__((section(".data.rel.ro"))) = 2;
const int bak __attribute__((section(".data.xyz"))) = 2;