https://sourceware.org/bugzilla/show_bug.cgi?id=32311

--- Comment #4 from User441669 <the.ra2.ifv at gmail dot com> ---
Just one more step!

Error log:

```text
aarch64-openwrt-linux-musl-gcc-ranlib libelf_pic.a
ccache aarch64-openwrt-linux-musl-gcc -std=gnu99 -Wall -Wshadow -Wformat=2
-Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op
-Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5
-Wuse-after-free=3 -Werror -Wunused -Wextra -Wstack-usage=262144   
-mcpu=cortex-a72.cortex-a53 -fno-caller-saves -fno-plt -pipe -Ofast
-fhonour-copts
-fmacro-prefix-map=/openwrt/build_dir/target-aarch64_generic_musl/elfutils-0.191=elfutils-0.191
-ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -Wformat
-Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro   -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral
-Wno-error=use-after-free  
-L/openwrt/staging_dir/toolchain-aarch64_generic_gcc-14.2.0_musl/usr/lib
-L/openwrt/staging_dir/toolchain-aarch64_generic_gcc-14.2.0_musl/lib
-fuse-ld=mold -Wl,--gc-sections -flto=auto -fuse-linker-plugin -znow -zrelro   
-Wl,--build-id -o libelf.so -shared -Wl,-z,defs -Wl,-z,relro -o libelf.so \
        -Wl,--soname,libelf.so.1 \
        -Wl,--version-script,libelf.map \
        -Wl,--no-undefined \
        -Wl,--whole-archive libelf_pic.a -Wl,--no-whole-archive \
        ../lib/libeu.a -lz  
elf_compress.c: In function 'elf_compress':
elf_compress.c:688:30: error: potential null pointer dereference
[-Werror=null-dereference]
  688 |           shdr.s64->sh_flags |= SHF_COMPRESSED;
      |                              ^
elf_compress.c:688:19: error: potential null pointer dereference
[-Werror=null-dereference]
  688 |           shdr.s64->sh_flags |= SHF_COMPRESSED;
      |                   ^
elf_compress.c:686:34: error: potential null pointer dereference
[-Werror=null-dereference]
  686 |           shdr.s64->sh_addralign = __libelf_type_align (ELFCLASS64,
      |                                  ^
elf_compress.c:685:29: error: potential null pointer dereference
[-Werror=null-dereference]
  685 |           shdr.s64->sh_size = new_size;
      |                             ^
elf_compress.c:688:30: error: potential null pointer dereference
[-Werror=null-dereference]
  688 |           shdr.s64->sh_flags |= SHF_COMPRESSED;
      |                              ^
elf_compress.c:688:19: error: potential null pointer dereference
[-Werror=null-dereference]
  688 |           shdr.s64->sh_flags |= SHF_COMPRESSED;
      |                   ^
elf_compress.c:686:34: error: potential null pointer dereference
[-Werror=null-dereference]
  686 |           shdr.s64->sh_addralign = __libelf_type_align (ELFCLASS64,
      |                                  ^
elf_compress.c:685:29: error: potential null pointer dereference
[-Werror=null-dereference]
  685 |           shdr.s64->sh_size = new_size;
      |                             ^
lto1: all warnings being treated as errors
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to