Ticket #454: ppc-elf-relocs.patch

File ppc-elf-relocs.patch, 0.6 KB (added by wiml, 13 years ago)

Define R_PPC_ADDR16_{HI,LO} to R_PPC_16_{HI,LO}

  • src/exec_save.c

     
    150150#    include <elf.h> 
    151151#  endif 
    152152 
     153#  ifdef PARROT_PPC 
     154   /* A few systems' elf.h (such as netbsd) use slightly different names for these relocs */ 
     155#    if !defined(R_PPC_ADDR16_HI) && !defined(R_PPC_ADDR16_LO) && defined(R_PPC_16_HI) && defined(R_PPC_16_LO) 
     156#      define R_PPC_ADDR16_HI R_PPC_16_HI 
     157#      define R_PPC_ADDR16_LO R_PPC_16_LO 
     158#    endif 
     159#  endif /* PARROT_PPC */ 
     160 
    153161/* Add a section to the file 
    154162 * 
    155163 * n = Name