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]

Re: A 32bit BFD patch


> Index: elf32-mips.c
> ===================================================================
> RCS file: /cvs/binutils/binutils/bfd/elf32-mips.c,v
> retrieving revision 1.14
> diff -u -p -r1.14 elf32-mips.c
> --- elf32-mips.c	1999/07/07 19:23:19	1.14
> +++ elf32-mips.c	1999/07/11 16:23:50
> @@ -269,10 +269,17 @@ typedef enum {
>     : bfd_put_32 (abfd, val, ptr))
>  
>  /* Add a dynamic symbol table-entry.  */
> +#ifdef BFD64
>  #define MIPS_ELF_ADD_DYNAMIC_ENTRY(info, tag, val) \
>    (ABI_64_P (elf_hash_table (info)->dynobj)	   \
>     ? bfd_elf64_add_dynamic_entry (info, tag, val)  \
>     : bfd_elf32_add_dynamic_entry (info, tag, val))
> +#else
> +#define MIPS_ELF_ADD_DYNAMIC_ENTRY(info, tag, val) \
> +  (ABI_64_P (elf_hash_table (info)->dynobj)	   \
> +   ? bfd_elf64_add_dynamic_entry (info, tag, val)  \
> +   : (abort (), false))
> +#endif
>  

This one doesn't look right. Did you mean

#define MIPS_ELF_ADD_DYNAMIC_ENTRY(info, tag, val) \
  (ABI_64_P (elf_hash_table (info)->dynobj)	   \
   ? (abort (), false) 				   \
   : bfd_elf32_add_dynamic_entry (info, tag, val))


H.J.

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