Re: Move unwind info to read-only section on AIX

2014-09-16 Thread David Edelsohn
Hi, Andrew I can understand the requirement of linking with the newer version GCC to provide the dbase symbol. I'm just trying to understand how EH will work when some objects have EH with absolute references in the data section and some have relative references in the text section. I guess the in

Re: Move unwind info to read-only section on AIX

2014-09-16 Thread Andrew Dixie
Hi David, On AIX, mixing objects from different GCC versions should work as long as the newest GCC is used for linking. I tested a library with some objects compiled by GCC-4.4 and some objects compiled by a patched GCC-5.0. Exceptions passed through the mixed objects without issue. Did you have

Re: Move unwind info to read-only section on AIX

2014-09-16 Thread David Edelsohn
On Thu, Sep 11, 2014 at 8:11 PM, Andrew Dixie wrote: > Hi David, > > As discussed, I have updated the to use SYMBOL-$ syntax for > PC-relative addressing and to use a new symbol, __gcc_unwind_dbase, > rather than overloading __dso_handle. > > Regards, > Andrew > > 2014-09-09 Andrew Dixie > >

Re: Move unwind info to read-only section on AIX

2014-09-11 Thread Andrew Dixie
Hi David, As discussed, I have updated the to use SYMBOL-$ syntax for PC-relative addressing and to use a new symbol, __gcc_unwind_dbase, rather than overloading __dso_handle. Regards, Andrew 2014-09-09 Andrew Dixie Move exception tables to read-only memory on AIX. * collect2.c

Re: Move unwind info to read-only section on AIX

2014-07-30 Thread Andrew Dixie
Hi David, On Thu, Jul 31, 2014 at 2:22 PM, David Edelsohn wrote: > As the comment in the code states DWARF2 unwind info was placed in the > data section to prevent the AIX linker from garbage collecting it. > How are you avoiding that problem? That comment is very old. I'm not sure what the ori

Re: Move unwind info to read-only section on AIX

2014-07-30 Thread David Edelsohn
On Tue, Jul 29, 2014 at 5:33 PM, Andrew Dixie wrote: > Hi, > > The following patch moves dwarf unwind information from the data > section to the read-only/text section on AIX. This means the memory > for the unwind information can be shared across multiple processes. > > The frame tables are stil

Move unwind info to read-only section on AIX

2014-07-29 Thread Andrew Dixie
Hi, The following patch moves dwarf unwind information from the data section to the read-only/text section on AIX. This means the memory for the unwind information can be shared across multiple processes. The frame tables are still registered through collect2 scanning for "_GLOBAL_F" symbol name