mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 18:22:08 +00:00
64bd3adce5
* src/abg-writer.cc (write_elf_symbol_aliases): Changing function to keep multiple symbol aliases within one alias attribute * src/abg-reader.cc (build_elf_symbol_db): Changing function to read symbol's alias attribute and split if multiple alias exist with comma(,) asi a delimiter and add all aliases to main symbol * tests/data/test-read-dwarf/test3.c: Test file to generate multiple aliases * tests/data/test-read-dwarf/test3.so: Test shared library having multiple aliases of a symbol * tests/data/test-read-dwarf/test3.so.abi: XML file containing dwarf information from test3.so * tests/test-read-dwarf.cc (in_out_specs): Add the new test above * tests/Makefile.am: Add tests/data/test-read-dwarf/test3.c, tests/data/test-read-dwarf/test3.so and tests/data/test-read-dwarf/test3.so.abi to the distribution Signed-off-by: Sinny Kumari <skumari@redhat.com>
12 lines
258 B
C
12 lines
258 B
C
// Test file for creating multiple alias for a symbol
|
|
|
|
void __foo(void);
|
|
void foo(void) __attribute__((weak, alias("__foo")));
|
|
void foo__(void) __attribute__((weak, alias("__foo")));
|
|
void __foo__(void) __attribute__((alias("__foo")));
|
|
|
|
void __foo(void)
|
|
{
|
|
|
|
}
|