[Bug 221107] -r322109 and -r322210 (so clang 5) TARGET_ARCH=powerpc agp.kld or agp.kld gets: R_PPC_PLTREL24 reloc against local symbol; could not read symbols: Bad value

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 11 03:13:43 UTC 2017


--- Comment #7 from Mark Millard <markmi at dsl-only.net> ---
For reference for how aha.kld and agp.kld are

# Meta data file
CMD ld -m elf32ppc_fbsd -d -warn-common -r -d -o aha.kld aha.o aha_isa.o
CMD ctfmerge -L VERSION -g -o aha.kld aha.o aha_isa.o
CMD :> export_syms
CMD awk -f /usr/src/sys/conf/kmod_syms.awk aha.kld  export_syms | xargs -J%
objcopy % aha.kld
TARGET aha.kld

# Meta data file
CMD ld -m elf32ppc_fbsd -d -warn-common -r -d -o agp.kld agp.o agp_if.o
CMD ctfmerge -L VERSION -g -o agp.kld agp.o agp_if.o agp_apple.o
CMD echo agp_find_device                 agp_state               agp_acquire   
         agp_release             agp_enable              agp_alloc_memory      
 agp_free_memory                 agp_bin
d_memory                 agp_unbind_memory       agp_memory_info > export_syms
CMD awk -f /usr/src/sys/conf/kmod_syms.awk agp.kld  export_syms | xargs -J%
objcopy % agp.kld
TARGET agp.kld

It looks like (via kmod_syms.awk) objcopy is
explicitly turning various R_PPC_PLTREL24
examples into LOCAL symbols.

May be before clang 5 these were not

They are now and the conversion to LOCAL while
keeping R_PPC_PLTREL24 is rejected by:


which in turn stops ld from producing the
matching .full files. And that in turn stops
the buildkernel .

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list