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
5 lines
243 B
C
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;
|