slackbuilds_ponce/games/naev/bfd.diff
B. Watson e4c05f8cbc games/naev: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2022-02-21 14:34:28 -06:00

19 lines
849 B
Diff

diff -Naur naev-0.7.0/src/naev.c naev-0.7.0.patched/src/naev.c
--- naev-0.7.0/src/naev.c 2017-07-15 18:51:22.000000000 -0400
+++ naev-0.7.0.patched/src/naev.c 2022-02-20 17:32:49.060133407 -0500
@@ -1375,12 +1375,11 @@
asection *section;
for (section = abfd->sections; section != NULL; section = section->next) {
- if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
+ if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
continue;
- bfd_vma vma = bfd_get_section_vma(abfd, section);
- bfd_size_type size = bfd_get_section_size(section);
- if (address < vma || address >= vma + size)
+ bfd_vma vma = bfd_section_vma(section);
+ if (address < vma || address >= vma + bfd_section_size(section))
continue;
if (!bfd_find_nearest_line(abfd, section, syms, address - vma,