[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] Use POSIX nm to simplify AIX export_symbols_cmds.
From: |
Eric Blake |
Subject: |
Re: [PATCH 3/4] Use POSIX nm to simplify AIX export_symbols_cmds. |
Date: |
Thu, 10 Mar 2016 09:43:08 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 03/10/2016 04:29 AM, Peter Rosin wrote:
>> + elif test "$lt_cv_nm_interface" = "POSIX nm"; then
>> + symxfrm="\\2 $ac_symprfx\\1 \\1"
>> + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^[[
>> ]]*$ac_symprfx$sympat[[ ]][[ ]]*\($symcode$symcode*\)[[ ]][[
>> ]]*.*$opt_cr$/$symxfrm/p'"
>
> Do you really need to handle leading and multiple whitespace here?
> Posix, at least as seen here
> http://pubs.opengroup.org/onlinepubs/009696699/utilities/nm.html
> seems quite clear on no leading space and one space only as separator.
No, POSIX states that " " means at least one whitespace (could be
multiple; implementations can align at will), and "Δ" means exactly one
space character. Since nm didn't use the delta character, the code is
correct at looking for multiple whitespace.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap05.html
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
[PATCH 4/4] AIX: Stop exporting any _GLOBAL__ symbol., Michael Haubenwallner, 2016/03/10