https://sourceware.org/bugzilla/show_bug.cgi?id=34204

            Bug ID: 34204
           Summary: dlltool SEGVs with --exclude-symbols option
           Product: binutils
           Version: 2.44
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hyc at symas dot com
  Target Milestone: ---

This was broken by commit 45a7f5a29de7

`dlltool --exclude-symbols main foo.o`

will SEGV (foo.o doesn't need to exist for this to crash).

The problem is that leading_underscore is now initialized to NULL, and the code
that sets it only executes after all option processing is complete. But the
code for add_excludes() runs during option processing, and tries to printf
("%s", leading_underscore) before it has been set, and the string library SEGVs
on the NULL leading_underscore pointer.

It appears that 2.44 is the first release that included this commit but it
definitely crashes in 2.46.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to