Title: [6971] trunk/fs/binfmt_flat.c: [#5250] FLAT: drop local change related to reloc processing that doesnt appear to be necessary and we have no info on what it does
- Revision
- 6971
- Author
- vapier
- Date
- 2009-07-10 12:51:07 -0500 (Fri, 10 Jul 2009)
Log Message
[#5250] FLAT: drop local change related to reloc processing that doesnt appear to be necessary and we have no info on what it does
Modified Paths
Diff
Modified: trunk/fs/binfmt_flat.c (6970 => 6971)
--- trunk/fs/binfmt_flat.c 2009-07-10 17:22:03 UTC (rev 6970)
+++ trunk/fs/binfmt_flat.c 2009-07-10 17:51:07 UTC (rev 6971)
@@ -774,9 +774,7 @@
/* Get the pointer's value. */
addr = flat_get_addr_from_rp(rp, relval, flags,
&persistent);
- if (addr == 0)
- continue;
- if (! flat_addr_absolute (relval)) {
+ if (addr != 0) {
/*
* Do the relocation. PIC relocs in the data section are
* already in target order
@@ -788,9 +786,10 @@
ret = -ENOEXEC;
goto err;
}
+
+ /* Write back the relocated pointer. */
+ flat_put_addr_at_rp(rp, addr, relval);
}
- /* Write back the relocated pointer. */
- flat_put_addr_at_rp(rp, addr, relval);
}
} else {
for (i=0; i < relocs; i++)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits