[Bug default/19173] New: Abidiff doesn't detect symbol size change in library.
m.ostapenko at partner dot samsung.com
sourceware-bugzilla@sourceware.org
Thu Jan 1 00:00:00 GMT 2015
https://sourceware.org/bugzilla/show_bug.cgi?id=19173
Bug ID: 19173
Summary: Abidiff doesn't detect symbol size change in library.
Product: libabigail
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: default
Assignee: dodji at redhat dot com
Reporter: m.ostapenko at partner dot samsung.com
CC: libabigail at sourceware dot org
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Build: x86_64-pc-linux-gnu
Created attachment 8741
--> https://sourceware.org/bugzilla/attachment.cgi?id=8741&action=edit
libfoo.so
Hi Dodji.
I was playing with ASan in LLVM and noticed, that it can implicitly change
global variable symbol size (that is seems to be an ABI breakage). However,
abidiff didn't report this change:
max@max:/tmp$ cat libfoo.c
long buggy_symbol = 4;
long foo (long *p) { return *p; }
max@max:/tmp$ clang libfoo.c -shared -fpic -o libfoo.so -g
max@max:/tmp$ readelf -s libfoo.so | grep buggy_symbol
7: 0000000000201030 8 OBJECT GLOBAL DEFAULT 21 buggy_symbol
49: 0000000000201030 8 OBJECT GLOBAL DEFAULT 21 buggy_symbol
max@max:/tmp$ clang libfoo.c -shared -fpic -o libfoo2.so -g -fsanitize=address
max@max:/tmp$ readelf -s libfoo2.so | grep buggy_symbol
12: 0000000000201080 64 OBJECT GLOBAL DEFAULT 23 buggy_symbol
56: 0000000000201080 64 OBJECT GLOBAL DEFAULT 23 buggy_symbol
Is this an abidiff's bug (should it report such an issue)?
I'm attaching libfoo.so and libfoo2.so.
Thanks!
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libabigail
mailing list