This patch resolves link errors when the address of a static function is taken, and that function is uninstrumented by DFSan.
This change resolves bug 36314.
Differential D44784
DataFlowSanitizer: wrappers of functions with local linkage should have the same linkage as the function being wrapped skerner on Mar 22 2018, 8:53 AM. Authored by
Details This patch resolves link errors when the address of a static function is taken, and that function is uninstrumented by DFSan. This change resolves bug 36314.
Diff Detail
Event TimelineComment Actions It seems like a better fix would be to give the dfsw$ function internal linkage if the wrapped function has internal linkage. That way, if two translation units have static uninstrumented functions with the same name, the references to the dfsw$ functions will be correct. Comment Actions Address review comment: Wrappers of local functions should have the same linkage as the function being wrapped. |