[Bug 273845] emulators/qemu-user-static: ld: error: undefined symbol: elf_getphnum
Date: Wed, 20 Sep 2023 13:01:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273845 --- Comment #6 from John Hein <jcfyecrayz@liamekaens.com> --- (In reply to John Hein from comment #4) I said: "elf_getphdrnum() is identical to elf_getphnum in both implementations (elftoolchain and elfutils)." I meant to say: elf_getsnum() is identical to elf_getshdrnum in both implementations (elftoolchain and elfutils). elf_getphnum() is identical to elf_getphdrnum in elftoolchain and elfutils only has getphdrnum(). In elfutils, getphdrnum() was not added until after the getshnum() deprecation (in 2009). I would guess that when elf_getphdrnum() was added in 2009, the thinking was to not add an alternate signature (elf_getphnum()) that would be not recommended (deprecated) at birth. -- You are receiving this mail because: You are the assignee for the bug.