https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192253

            Bug ID: 192253
           Summary: [INCOMPLETE] [PATCH] Add GNU hash support to kernel
                    link_elf, kldxref
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: conrad.me...@isilon.com

Created attachment 145127
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145127&action=edit
(patch -p1 in src/ ; applies against recent-ish CURRENT)

This incomplete patch ports r234841 (GNU hash for rtld-elf) to the kernel
linker and kldxref ELF implementations. To finish the work, someone will have
to port support to the bootloader as well (OR, switch '--hash-style=gnu' to
'--hash-style=both' and eat the additional hash table bloat).

We abandoned this route because it doesn't help very much on AMD64 (relocatable
ELF object kmodules do not get any hash table) and we got 99.9% of the gains we
wanted with the patch in bug 192249. Also, it is obnoxious how many different
ELF implementations exist and most of them lack GNU hash support (bug 192252).

Still, maybe this is useful to someone or other (embedded?) architectures where
kernel modules are proper shared objects.

Sponsored by:    EMC / Isilon storage division

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to