[binutils-gdb] Revert 4ee1d7e401a8c1aedfdc86aac7faa8267eab1e5c
Nick Clifton
nickc@sourceware.org
Tue Jun 25 11:43:21 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8c438c8d083f84eb59eb465020e5b7a923afe1ba
commit 8c438c8d083f84eb59eb465020e5b7a923afe1ba
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 25 12:41:20 2024 +0100
Revert 4ee1d7e401a8c1aedfdc86aac7faa8267eab1e5c
PR 20880
Diff:
---
ld/pe-dll.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 95eef84f607..31bdb0b95ad 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -2534,8 +2534,6 @@ make_one (def_file_export *exp, bfd *parent, bool include_jmp_stub)
}
else
{
- int ord;
-
/* { short, asciz } */
if (exp->its_name)
len = 2 + strlen (exp->its_name) + 1;
@@ -2547,13 +2545,8 @@ make_one (def_file_export *exp, bfd *parent, bool include_jmp_stub)
d6 = xmalloc (len);
id6->contents = d6;
memset (d6, 0, len);
-
- /* PR 20880: Use exp->hint as a backup, just in case exp->ordinal
- contains an invalid value (-1). */
- ord = (exp->ordinal >= 0) ? exp->ordinal : exp->hint;
- d6[0] = ord;
- d6[1] = ord >> 8;
-
+ d6[0] = exp->hint & 0xff;
+ d6[1] = exp->hint >> 8;
if (exp->its_name)
strcpy ((char*) d6 + 2, exp->its_name);
else
More information about the Binutils-cvs
mailing list