[PATCH] elf32-i386: Fix a typo in GOT comments

H.J. Lu hjl.tools@gmail.com
Tue Dec 28 17:53:49 GMT 2021


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



More information about the Binutils mailing list