From 47787872f2adff7de0ad08c68c69d562bd5af4fd Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 10 Oct 2012 14:54:11 +0000 Subject: [PATCH] Disable R_ARM_REL32 logic git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5224 42af7a65-404d-4744-a932-0658087f49c3 --- misc/buildroot/ChangeLog | 2 ++ misc/buildroot/toolchain/nxflat/ldnxflat.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/misc/buildroot/ChangeLog b/misc/buildroot/ChangeLog index 72c6ac29bf..3cfd60bf2e 100644 --- a/misc/buildroot/ChangeLog +++ b/misc/buildroot/ChangeLog @@ -121,4 +121,6 @@ buildroot-1.11 2011-xx-xx * Added an ARM EABI GCC 4.6.3 configuration (tool name is arm-nuttx-eabi-). * ldnxflat: Add support for the R_ARM_REL32 relocation. This relocation type was not generated by GCC/LD prior to gcc-4.6.3 + * R_ARM_REL32 logic is conditionally disabled because it has not been + tested. diff --git a/misc/buildroot/toolchain/nxflat/ldnxflat.c b/misc/buildroot/toolchain/nxflat/ldnxflat.c index 5bcdc5da0e..5343e6b438 100644 --- a/misc/buildroot/toolchain/nxflat/ldnxflat.c +++ b/misc/buildroot/toolchain/nxflat/ldnxflat.c @@ -1118,7 +1118,14 @@ resolve_segment_relocs(bfd *input_bfd, segment_info *inf, asymbol **syms) * the symbol value is relative to the PC, and (2) we cannot permit * REL32 relocations to data in I-Space. That just would not make sense. */ +#if 1 + /* The logic below may or may not be correct. It has not been verified + * so, for now, it is disabled. + */ + err("REL32 relocation not yet supported\n"); + nerrors++; +#else switch (get_reloc_type(rel_section, NULL)) { case NXFLAT_RELOC_TARGET_UNKNOWN: @@ -1145,6 +1152,7 @@ resolve_segment_relocs(bfd *input_bfd, segment_info *inf, asymbol **syms) } break; } +#endif } break;