Line
Link Here
|
0 |
-- a/util/cairo-trace/lookup-symbol.c |
0 |
++ b/util/cairo-trace/lookup-symbol.c |
Lines 145-158
find_address_in_section (bfd *abfd,
Link Here
|
145 |
if (symbol->found) |
145 |
if (symbol->found) |
146 |
return; |
146 |
return; |
147 |
|
147 |
|
148 |
if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0) |
148 |
if ((bfd_section_flags (section) & SEC_ALLOC) == 0) |
149 |
return; |
149 |
return; |
150 |
|
150 |
|
151 |
vma = bfd_get_section_vma (symtab->bfd, section); |
151 |
vma = bfd_section_vma (section); |
152 |
if (symbol->pc < vma) |
152 |
if (symbol->pc < vma) |
153 |
return; |
153 |
return; |
154 |
|
154 |
|
155 |
size = bfd_section_size (symtab->bfd, section); |
155 |
size = bfd_section_size (section); |
156 |
if (symbol->pc >= vma + size) |
156 |
if (symbol->pc >= vma + size) |
157 |
return; |
157 |
return; |
158 |
|
158 |
|