* [binutils-gdb] Revert 4ee1d7e401a8c1aedfdc86aac7faa8267eab1e5c
@ 2024-06-25 11:43 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2024-06-25 11:43 UTC (permalink / raw)
To: binutils-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-25 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-25 11:43 [binutils-gdb] Revert 4ee1d7e401a8c1aedfdc86aac7faa8267eab1e5c Nick Clifton
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).