armv6 tree broken with DT_TEXTREL error in libc.so

Tim Kientzle kientzle at freebsd.org
Sat Jun 9 16:20:31 UTC 2012


In the armv6 tree, libc.so fails to link with an error because DT_TEXTREL is being generated.  But I can't figure out why this is happening:

  * A regular arm.arm libc.so built on -CURRENT does not have a TEXTREL section.

  * This first appeared in gonzo's "Huge merge from HEAD" at commit 234858.  An armv6 world from r234857 doesn't have a TEXTREL in libc.so.

  * I cannot find any interesting differences in the Makefiles under libc that might explain this.  That commit did not merge any interesting changes to binutils, either.

  * If I make the --warn-shared-textrel non-fatal, then libc.so can build successfully.
          = It does indeed have a TEXTREL section, BUT
          = that section is zero bytes long (if I'm reading objdump output correctly)
     (So I understand neither why it's there nor why it's presence would be a problem.)

Any ideas for what I should check next?

Tim



More information about the freebsd-arm mailing list