This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]