re PR sanitizer/80953 (Support libsanitizer on Solaris)
PR sanitizer/80953 Merge from LLVM revision 355979 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to copy Global objects for SPARC with GCC. From-SVN: r269640
This commit is contained in:
parent
36b50aeb4e
commit
a196c82cf2
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2019-03-13 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
PR sanitizer/80953
|
||||
Merge from LLVM revision 355979
|
||||
* asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
|
||||
copy Global objects for SPARC with GCC.
|
||||
|
||||
2019-03-13 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
PR sanitizer/80953
|
||||
|
|
|
@ -112,7 +112,11 @@ int GetGlobalsForAddress(uptr addr, Global *globals, u32 *reg_sites,
|
|||
if (flags()->report_globals >= 2)
|
||||
ReportGlobal(g, "Search");
|
||||
if (IsAddressNearGlobal(addr, g)) {
|
||||
#if defined(__GNUC__) && defined(__sparc__)
|
||||
internal_memcpy(&globals[res], &g, sizeof(g));
|
||||
#else
|
||||
globals[res] = g;
|
||||
#endif
|
||||
if (reg_sites)
|
||||
reg_sites[res] = FindRegistrationSite(&g);
|
||||
res++;
|
||||
|
|
Loading…
Add table
Reference in a new issue