Opened 17 years ago

Closed 17 years ago

#140 closed defect (fixed)

Definition file line can be greater than 512 bytes

Reported by: Yuri Dario Owned by: bird
Priority: normal Milestone: libc-0.6.2
Component: emx Version: 0.6.1
Severity: normal Keywords: def
Cc:

Description

A .def file line can exceed 512 bytes when a weak symbol is aliased, an ordinal number is present and weak linker adds '; !weakld changed this!'

In my case I reached around 535 bytes, below patch is slighlty larger :-)

Index: moddef1.c
===================================================================
--- moddef1.c	(revision 2701)
+++ moddef1.c	(working copy)
@@ -20,8 +20,8 @@
   long linenumber;
   unsigned flags;
   const char *ptr;
-  char string[2048];
-  char buffer[2048];
+  char string[768];
+  char buffer[768];
 };
 
 /* An entry of the keywords table associates a keyword string with a

Change History (1)

comment:1 Changed 17 years ago by bird

Keywords: def added
Resolution: fixed
Status: newclosed

Already fixed this on the trunk, backported to the 0.6 branch now.

Note: See TracTickets for help on using tickets.