Browse Source

fix c6x toolchain compile

Waldemar Brodkorb 2 months ago
parent
commit
0ab4d9d49d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ldso/ldso/dl-elf.c
  2. 1 1
      ldso/ldso/dl-startup.c

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

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

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

@@ -264,7 +264,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__)
+#if !defined(__FDPIC__) && !defined(__DSBT__)
 	/* Process DT_RELR relative relocations */
 	DL_RELOCATE_RELR(tpnt);
 #endif