Opened 15 years ago

Closed 14 years ago

#221 closed defect (fixed)

ld crashes when linking a very large .o file

Reported by: KO Myung-Hun Owned by: bird
Priority: normal Milestone: libc-0.6.4
Component: emx Version: 0.6.2
Severity: major Keywords:
Cc:

Description

Hi/2.

As a subject, ld crashes when linking a very large .o file such as libqt4_plugin.la-1.o of Qt4 plugin for VLC.

This is because ld uses alloca() to allocate memory.

Now use malloc() instead.

Attachments (2)

ld.diff (412 bytes ) - added by KO Myung-Hun 15 years ago.
Patch for ld
ld.zip (44.7 KB ) - added by KO Myung-Hun 15 years ago.
Patched ld.exe

Download all attachments as: .zip

Change History (5)

by KO Myung-Hun, 15 years ago

Attachment: ld.diff added

Patch for ld

by KO Myung-Hun, 15 years ago

Attachment: ld.zip added

Patched ld.exe

comment:1 by bird, 14 years ago

Priority: highestnormal
Severity: blockermajor

comment:2 by bird, 14 years ago

(In [3679]) emx/ld: Don't use alloca(). References #221.

comment:3 by bird, 14 years ago

Resolution: fixed
Status: newclosed

(In [3680]) 0.6: Backported r3679: emx/ld: Don't use alloca(). Fixes #221.

Note: See TracTickets for help on using tickets.