Updates:
Cc: [email protected] [email protected]
Comment #3 on issue 260 by [email protected]: ASan breaks dead
stripping (-ffunction-sections/-Wl,-gc-section on Linux, -dead_strip on OSX)
http://code.google.com/p/address-sanitizer/issues/detail?id=260
Looks like the linkers on Linux and OSX are clever enough to emit the
symbols for the start and end of a certain section (see the attached
example). We can make the compiler put per-variable global descriptors into
a special data section and iterate over it using these two symbols. This
shall allow the linker discard the unused globals since they won't be
transitively referenced by the global constructors array.
Attachments:
p.c 1002 bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.