wok diff cairo/stuff/patches/lookup-symbol.c-1.16.0 @ rev 24988

Fix perl-gd & tcptrack
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 12 11:01:25 2022 +0000 (2022-05-12)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cairo/stuff/patches/lookup-symbol.c-1.16.0	Thu May 12 11:01:25 2022 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +--- util/cairo-trace/lookup-symbol.c.orig
     1.5 ++++ util/cairo-trace/lookup-symbol.c
     1.6 +@@ -145,14 +145,14 @@
     1.7 +     if (symbol->found)
     1.8 + 	return;
     1.9 + 
    1.10 +-    if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0)
    1.11 ++    if ((bfd_section_flags (section) & SEC_ALLOC) == 0)
    1.12 + 	return;
    1.13 + 
    1.14 +-    vma = bfd_get_section_vma (symtab->bfd, section);
    1.15 ++    vma = bfd_section_vma (section);
    1.16 +     if (symbol->pc < vma)
    1.17 + 	return;
    1.18 + 
    1.19 +-    size = bfd_section_size (symtab->bfd, section);
    1.20 ++    size = bfd_section_size (section);
    1.21 +     if (symbol->pc >= vma + size)
    1.22 + 	return;
    1.23 +