bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/15033] option capable of stripping LTO (all sections begin


From: hjl.tools at gmail dot com
Subject: [Bug binutils/15033] option capable of stripping LTO (all sections beginning with .gnu.lto_)
Date: Fri, 18 Jan 2013 17:33:15 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15033

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2013-01-18 17:33:15 
UTC ---
(In reply to comment #2)
> Hi Samuel,
> 
>   Please try out the uploaded patch and let me know if it works for you.
> 
>   The patch allows an asterisk to be placed at the end of a section name in a
> --remove-section option, so making it match all sections that start with that
> prefix.  I decided against implementing full regex support (or using the
> support already provided in libiberty) in order to keep things simple.
> 
> Cheers
>   Nick

Why not use fnmatch like linker script?

#define wildcardp(pattern) (strpbrk ((pattern), "?*[") != NULL)

static int
name_match (const char *pattern, const char *name)
{
  if (wildcardp (pattern))
    return fnmatch (pattern, name, 0);
  return strcmp (pattern, name);
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]