Re: [PATCH 2/2] AIX: Stop exporting any _GLOBAL__ symbol.

2016-03-21 Thread David Edelsohn
On Wed, Mar 2, 2016 at 11:19 AM, Michael Haubenwallner wrote: > * m4/libtool.m4 (_LT_LINKER_SHLIBS): On AIX, GNU g++ generates > _GLOBAL__* symbols as, amongst others, landing pads for C++ exceptions. > These symbols must not be exported from shared libraries, or exception > handling may break for

Re: [PATCH 1/2] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-21 Thread David Edelsohn
On Mon, Mar 21, 2016 at 12:50 PM, Michael Haubenwallner wrote: > > On 03/21/2016 03:47 PM, David Edelsohn wrote: >> On Mon, Mar 21, 2016 at 4:49 AM, Michael Haubenwallner >> wrote: >>> >>> On 03/20/2016 01:04 AM, David Edelsohn wrote: >>>> I agr

Re: [PATCH 1/2] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-21 Thread David Edelsohn
On Mon, Mar 21, 2016 at 4:49 AM, Michael Haubenwallner wrote: > > On 03/20/2016 01:04 AM, David Edelsohn wrote: >> I agree with this in principle, but I'm not convinced that the patch >> itself is correct. > > Thanks! > >> I also would have split th

Re: [PATCH 1/2] Use POSIX nm to simplify AIX export_symbols_cmds.

2016-03-19 Thread David Edelsohn
I agree with this in principle, but I'm not convinced that the patch itself is correct. I also would have split the MS-compatible part of the patch as a separate step. It is not listed in the ChangeLog and just confuses the patch. I don't see that this emits TLS symbols. Global TLS symbols are

[PATCH, PING] Export AIX TLS symbols

2015-11-17 Thread David Edelsohn
Ping. Libtool export_symbols_cmds needs an update to recognize and export TLS symbols on AIX. http://lists.gnu.org/archive/html/libtool-patches/2015-11/msg0.html Thanks, David

Export AIX TLS symbols

2015-11-05 Thread David Edelsohn
TLS symbols in AIX display a new, different symbol type in nm output. Libtool explicitly creates a list of exported symbols for AIX shared libraries using nm and does not recognize the new TLS symbols, so those symbols are not exported in AIX shared libraries. This is a regression for TLS support

AIX PIC shared library support

2012-08-20 Thread David Edelsohn
The GCC -fpic/-fPIC option has evolved to mean code generation for a shared library and changes the optimization behavior of the compiler. Code for AIX PowerPC always is PIC, but the optimization behavior is affecting AIX. libtool exports all global symbols on AIX while GCC binds_local_p() determi

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-22 Thread David Edelsohn
In addition to the missing _LT_TAGDECL, I found a mistake in the previous patch. I referenced the original name of a variable, $filelist, instead of $output. Sorry for letting that slip through. Appended is a revised patch. David * m4/libtool.m4 (_LT_LINKER_SHLIBS): _LT_TAGDECL

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-22 Thread David Edelsohn
Alexandre pointed out that my patch is missing _LT_TAGDECL for the new variable. I am not sure whether I am setting the parameter "VALUE" correctly, other *_spec variables appear to use "1". Thanks, David * libtool.m4 (_LT_LINKER_SHLIBS): _LT_TAGDECL(file_list_spec). Index: lib

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-14 Thread David Edelsohn
> Ralf Wildenhues writes: Ralf> If your command line is too long, it's too long. And if $ECHO is not Ralf> builtin, it might be too long for it as well. Avoiding $ECHO also makes creating archive_linkscript_cmds more cumbersome. Appended is the current iteration of the patch

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-14 Thread David Edelsohn
> Ralf Wildenhues writes: Ralf> Yes, but what I meant was removing _before_ your changes. Your patch had Ralf> | + output=${output_objdir}/${output_la}.lnk Ralf> | + func_echo "creating linker input file list: $output" Ralf> | + for obj in $save_libobjs Ralf> |

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-14 Thread David Edelsohn
> Ralf Wildenhues writes: Ralf> What would the linker do with special characters in file names? Ralf> Not that it would matter for libtool ATM, but this might change (at Ralf> least the dollar sign would be helpful), so it'd be good to know what Ralf> breaks then. AIX allows file glob

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-13 Thread David Edelsohn
> Peter O'Gorman writes: Peter> Look for $with_gnu_ld in ltmain.m4sh. Okay, sorry that I missed that. I can move my change to that block, but the GNU ld linker script syntax is just different enough that I cannot reuse the file. GNU ld wants a file containing INPUT ( "filename1" "

Re: [patch] list of input files if max_cmd_len exceeded

2005-04-13 Thread David Edelsohn
> Peter O'Gorman writes: Peter> This looks like a good idea, but could you please supply a patch against Peter> libtool HEAD where there is already a section to use a linker script if Peter> usign gnu ld. The patch is relative to libtool HEAD. Can you point me to the location of the

[patch] list of input files if max_cmd_len exceeded

2005-04-13 Thread David Edelsohn
If a link command is longer than $max_cmd_len, libtool currently breaks up the link command into shorter subcommands by creating intermediate reloadable object files. Because of assumptions by libtool, this does not work on all targets. Additionally, some targets have the ability to speci