summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1996-05-27 18:06:02 +0000
committerjdp <jdp@FreeBSD.org>1996-05-27 18:06:02 +0000
commitc8c3761213a872e8d07589a2c23c8bd8bd3cabd7 (patch)
tree9fe149eec55b77dfafce480d32c940ef069b7f59 /gnu
parent26b765c5bd09623b837954595ceebc4df79535e6 (diff)
downloadFreeBSD-src-c8c3761213a872e8d07589a2c23c8bd8bd3cabd7.zip
FreeBSD-src-c8c3761213a872e8d07589a2c23c8bd8bd3cabd7.tar.gz
Zero out an unused field in a structure that is written to the output
file. The field formerly contained random garbage, leading to spurious differences between otherwise identical executables and libraries. Submitted by: Bruce Evans <bde@freebsd.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/ld/rrs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/rrs.c b/gnu/usr.bin/ld/rrs.c
index 2d1b3bc..602bccf 100644
--- a/gnu/usr.bin/ld/rrs.c
+++ b/gnu/usr.bin/ld/rrs.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rrs.c,v 1.13 1994/12/23 22:30:48 nate Exp $
+ * $Id: rrs.c,v 1.14 1995/03/04 17:46:09 nate Exp $
*/
#include <sys/param.h>
@@ -1185,6 +1185,7 @@ write_rrs_text()
sodp[i].sod_library = 1;
} else
sodp[i].sod_library = 0;
+ sodp[i].sod_reserved = 0;
pos += 1 + strlen(name);
sodp[i].sod_next = (i == number_of_shobjs - 1) ? 0 :
OpenPOWER on IntegriCloud