From: <ped...@us...> - 2006-10-31 14:20:47
|
Revision: 762 http://svn.sourceforge.net/cegcc/?rev=762&view=rev Author: pedroalves Date: 2006-10-31 06:20:20 -0800 (Tue, 31 Oct 2006) Log Message: ----------- Applying some binutils pending patches: bfd/ChangeLog 2006-10-21 Pedro Alves <ped...@po...> * pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".". * pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise. * coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before. gas/ChangeLog 2006-10-22 Pedro Alves <ped...@po...> * config/tc-arm.c (arm_fix_adjustable) [OBJ_COFF]: Delete. (arm_fix_adjustable) [OBJ_ELF]: Use it on coff targets too. Modified Paths: -------------- trunk/cegcc/src/binutils/bfd/coff-arm.c trunk/cegcc/src/binutils/bfd/pe-arm-wince.c trunk/cegcc/src/binutils/bfd/pei-arm-wince.c trunk/cegcc/src/binutils/gas/config/tc-arm.c Modified: trunk/cegcc/src/binutils/bfd/coff-arm.c =================================================================== --- trunk/cegcc/src/binutils/bfd/coff-arm.c 2006-10-31 14:06:23 UTC (rev 761) +++ trunk/cegcc/src/binutils/bfd/coff-arm.c 2006-10-31 14:20:20 UTC (rev 762) @@ -2424,7 +2424,9 @@ /* Note: the definitions here of LOCAL_LABEL_PREFIX and USER_LABEL_PREIFX *must* match the definitions in gcc/config/arm/{coff|semi|aout}.h. */ +#ifndef LOCAL_LABEL_PREFIX #define LOCAL_LABEL_PREFIX "" +#endif #ifndef USER_LABEL_PREFIX #define USER_LABEL_PREFIX "_" #endif Modified: trunk/cegcc/src/binutils/bfd/pe-arm-wince.c =================================================================== --- trunk/cegcc/src/binutils/bfd/pe-arm-wince.c 2006-10-31 14:06:23 UTC (rev 761) +++ trunk/cegcc/src/binutils/bfd/pe-arm-wince.c 2006-10-31 14:20:20 UTC (rev 762) @@ -32,4 +32,6 @@ #define bfd_arm_process_before_allocation \ bfd_arm_wince_pe_process_before_allocation +#define LOCAL_LABEL_PREFIX "." + #include "pe-arm.c" Modified: trunk/cegcc/src/binutils/bfd/pei-arm-wince.c =================================================================== --- trunk/cegcc/src/binutils/bfd/pei-arm-wince.c 2006-10-31 14:06:23 UTC (rev 761) +++ trunk/cegcc/src/binutils/bfd/pei-arm-wince.c 2006-10-31 14:20:20 UTC (rev 762) @@ -25,4 +25,6 @@ #define TARGET_BIG_SYM arm_wince_pei_big_vec #define TARGET_BIG_NAME "pei-arm-wince-big" +#define LOCAL_LABEL_PREFIX "." + #include "pei-arm.c" Modified: trunk/cegcc/src/binutils/gas/config/tc-arm.c =================================================================== --- trunk/cegcc/src/binutils/gas/config/tc-arm.c 2006-10-31 14:06:23 UTC (rev 761) +++ trunk/cegcc/src/binutils/gas/config/tc-arm.c 2006-10-31 14:20:20 UTC (rev 762) @@ -18899,36 +18899,7 @@ return generic_force_reloc (fixp); } -#ifdef OBJ_COFF -bfd_boolean -arm_fix_adjustable (fixS * fixP) -{ - /* This is a little hack to help the gas/arm/adrl.s test. It prevents - local labels from being added to the output symbol table when they - are used with the ADRL pseudo op. The ADRL relocation should always - be resolved before the binbary is emitted, so it is safe to say that - it is adjustable. */ - if (fixP->fx_r_type == BFD_RELOC_ARM_ADRL_IMMEDIATE) - return 1; - - /* This is a hack for the gas/all/redef2.s test. This test causes symbols - to be cloned, and without this test relocs would still be generated - against the original, pre-cloned symbol. Such symbols would not appear - in the symbol table however, and so a valid reloc could not be - generated. So check to see if the fixup is against a symbol which has - been removed from the symbol chain, and if it is, then allow it to be - adjusted into a reloc against a section symbol. */ - if (fixP->fx_addsy != NULL - && ! S_IS_LOCAL (fixP->fx_addsy) - && symbol_next (fixP->fx_addsy) == NULL - && symbol_next (fixP->fx_addsy) == symbol_previous (fixP->fx_addsy)) - return 1; - - return 0; -} -#endif - -#ifdef OBJ_ELF +#if defined (OBJ_ELF) || defined (OBJ_COFF) /* Relocations against function names must be left unadjusted, so that the linker can use this information to generate interworking stubs. The MIPS version of this function @@ -18981,7 +18952,10 @@ return 1; } +#endif /* defined (OBJ_ELF) || defined (OBJ_COFF) */ +#ifdef OBJ_ELF + const char * elf32_arm_target_format (void) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |