public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] elf32-i386: Fix a typo in GOT comments
@ 2021-12-28 17:53 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2021-12-28 17:53 UTC (permalink / raw)
  To: binutils

Entry offsets in the global offset table are multiples of 4, not 8.

	* elf32-i386.c (elf_i386_relocate_section): Fix a typo in GOT
	comments.
---
 bfd/elf32-i386.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index db6d1accdbc..d4f8ec3b21d 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -2311,7 +2311,7 @@ elf_i386_relocate_section (bfd *output_bfd,
 		    {
 		      /* This references the local defitionion.  We must
 			 initialize this entry in the global offset table.
-			 Since the offset must always be a multiple of 8,
+			 Since the offset must always be a multiple of 4,
 			 we use the least significant bit to record
 			 whether we have initialized it already.
 
-- 
2.33.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-28 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 17:53 [PATCH] elf32-i386: Fix a typo in GOT comments H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).