aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcc.c2
-rw-r--r--tccelf.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/tcc.c b/tcc.c
index 9daf6e6..32c966e 100644
--- a/tcc.c
+++ b/tcc.c
@@ -132,7 +132,7 @@ static void help(void)
#include <process.h>
static int execvp_win32(const char *prog, char **argv)
{
- int ret = spawnvp(P_NOWAIT, prog, (const char *const*)argv);
+ int ret = spawnvp(P_NOWAIT, prog, (char *const*)argv);
if (-1 == ret)
return ret;
cwait(&ret, ret, WAIT_CHILD);
diff --git a/tccelf.c b/tccelf.c
index b90cf0f..9cfa8c4 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -573,6 +573,9 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
goto output_file;
write16le(ptr, read16le(ptr) + val - addr);
break;
+ case R_386_RELATIVE:
+ /* do nothing */
+ break;
default:
fprintf(stderr,"FIXME: handle reloc type %d at %x [%p] to %x\n",
type, (unsigned)addr, ptr, (unsigned)val);