cvs commit: src/sys/kern link_elf_obj.c

Konstantin Belousov kib at FreeBSD.org
Thu Nov 30 02:50:39 PST 2006


kib         2006-11-30 10:50:29 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             link_elf_obj.c 
  Log:
  Linker set support depends on the magic __start_<section> and
  __stop_<section> symbols generated by the static linker for elf
  sections. This is done only for the final link, and not for ld -r.
  Augment elf_obj in-kernel linker by recognizing such special symbols,
  and resolving them to the start and end of the section automatically.
  
  As result, linker sets on amd64 could be used in the same way as on
  other architectures, without explicit calls to linker_file_lookup_set().
  
  Requested by:   rdivacky
  No objections from:     peter, jhb
  
  Revision  Changes    Path
  1.94      +47 -0     src/sys/kern/link_elf_obj.c


More information about the cvs-src mailing list