Browse Source

frv: fix compile issues

Waldemar Brodkorb 3 weeks ago
parent
commit
a7bd4685fe
3 changed files with 5 additions and 2 deletions
  1. 3 0
      Rules.mak
  2. 1 1
      ldso/ldso/dl-elf.c
  3. 1 1
      ldso/ldso/dl-startup.c

+ 3 - 0
Rules.mak

@@ -671,6 +671,9 @@ endif
 ifeq ($(TARGET_ARCH),bfin)
 CFLAGS += -Wno-implicit-function-declaration
 endif
+ifeq ($(TARGET_ARCH),frv)
+CFLAGS += -Wno-implicit-function-declaration
+endif
 ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),"")
 LDFLAGS += $(call qstrip,$(UCLIBC_EXTRA_LDFLAGS))
 endif

+ 1 - 1
ldso/ldso/dl-elf.c

@@ -1028,7 +1028,7 @@ int _dl_fixup(struct dyn_elf *rpnt, struct r_scope_elem *scope, int now_flag)
 		return goof;
 	}
 
-#if !defined(__FDPIC__) && !defined(__DSBT__)
+#if !defined(__FDPIC__) && !defined(__FRV_FDPIC__) && !defined(__DSBT__)
 	/* Process DT_RELR relative relocations */
 	DL_RELOCATE_RELR(tpnt);
 #endif

+ 1 - 1
ldso/ldso/dl-startup.c

@@ -267,7 +267,7 @@ DL_START(unsigned long args)
 	   that once we are done, we have considerably more flexibility. */
 	SEND_EARLY_STDERR_DEBUG("About to do library loader relocations\n");
 
-#if !defined(__FDPIC__) && !defined(__DSBT__)
+#if !defined(__FDPIC__) && !defined(__FRV_FDPIC__) && !defined(__DSBT__)
 	/* Process DT_RELR relative relocations */
 	DL_RELOCATE_RELR(tpnt);
 #endif