how to handle Linux specific bits in ld/emultempl/elf32.em

David O'Brien obrien@NUXI.com
Wed Apr 26 10:58:00 GMT 2000


ld/emultempl/elf32.em contains the function
gld${EMULATION_NAME}_check_ld_so_conf with a comment of:

    /* For a native linker, check the file /etc/ld.so.conf for directories
       in which we may find shared libraries.  /etc/ld.so.conf is really
       only meaningful on Linux.  */
    
However this causes problems on FreeBSD where a
gld${EMULATION_NAME}_check_ld_elf_hints function is needed.  "ld.so" is
our a.out run-time link-editor.

Should gld${EMULATION_NAME}_check_ld_elf_hints be added to elf32.em with
it and gld${EMULATION_NAME}_check_ld_so_conf wrapped in a case statement
triggering on `${target}'?  Or should both functions be moved to system
specific files and conditionally "included"?

-- 
-- David    (obrien@NUXI.com)


More information about the Binutils mailing list