wok-current rev 24749
cairo: modified lookup-symbol.c for binutils-2.37
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 17:06:35 2022 +0100 (2022-03-16) |
parents | f01b54fbd046 |
children | 930e95581fca |
files | cairo/receipt cairo/stuff/patches/lookup-symbol.c-1.16.0 |
line diff
1.1 --- a/cairo/receipt Wed Mar 16 15:28:37 2022 +0000 1.2 +++ b/cairo/receipt Wed Mar 16 17:06:35 2022 +0100 1.3 @@ -37,12 +37,9 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - # 1.16.0 workaround for 1.8 - # errors in lookup-symbol.c 1.9 - # enable-trace=no 1.10 - # until a better solution is found 1.11 - 1.12 - sed -i '/index.sgml/d' doc/public/Makefile* 1.13 + # modify lookup-symbol.c for binutils-2.37 1.14 + patch --strip=0 --input=$stuff/patches/lookup-symbol.c-1.16.0 && 1.15 + sed -i '/index.sgml/d' doc/public/Makefile* && 1.16 1.17 ./configure \ 1.18 --prefix=/usr \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cairo/stuff/patches/lookup-symbol.c-1.16.0 Wed Mar 16 17:06:35 2022 +0100 2.3 @@ -0,0 +1,20 @@ 2.4 +--- util/cairo-trace/lookup-symbol.c.orig 2.5 ++++ util/cairo-trace/lookup-symbol.c 2.6 +@@ -145,14 +145,14 @@ 2.7 + if (symbol->found) 2.8 + return; 2.9 + 2.10 +- if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0) 2.11 ++ if ((bfd_section_flags (section) & SEC_ALLOC) == 0) 2.12 + return; 2.13 + 2.14 +- vma = bfd_get_section_vma (symtab->bfd, section); 2.15 ++ vma = bfd_section_vma (section); 2.16 + if (symbol->pc < vma) 2.17 + return; 2.18 + 2.19 +- size = bfd_section_size (symtab->bfd, section); 2.20 ++ size = bfd_section_size (section); 2.21 + if (symbol->pc >= vma + size) 2.22 + return; 2.23 +