patchGNU Autoconf Archive - Patches: patch #8582, AX_CHECK_VSCRIPT: Check whether ld...

 
 

patch #8582: AX_CHECK_VSCRIPT: Check whether ld supports shared library symbol version scripts

Submitter:  Kevin Cernekee <cernekee>
Submitted:  Tue 02 Dec 2014 07:24:18 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Dec 2014 03:24:49 PM UTC, comment #1: 
Peter Simons <simons>
Group administrator
Tue 02 Dec 2014 07:24:18 PM UTC, original submission:  

Check whether the linker supports version scripts.  Version scripts are used when building shared libraries to bind symbols to version nodes (helping to detect incompatibilities) or to limit the visibility of non-public symbols.

Toolchain support:

  • GNU toolchains typically support --version-script foo.map.
  • Solaris supports -M foo.map.
  • Other systems might not support this feature at all.
  • OSX has its own "-M" flag which does something completely different, and isn't guaranteed to produce an error if you pass it a version script.
  • GNU toolchains support partial wildcards like "global: Java_*" but Solaris is stricter.


This macro distinguishes the known cases and makes it easy to disable symbol versioning on systems where it is unavailable.  It is partially based on prior work in this area:


A couple of Homebrew recipes have had to hack around hardcoded --version-script flags in the past; one goal of adding this to the Autoconf Archive is to provide a standard way of detecting/disabling this feature.

Tested on Linux (GNU ld 2.22), Solaris x86 (ld 5.11 from Solaris Studio 12.3), OSX (unknown).

Kevin Cernekee <cernekee>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by cernekee (Submitted the item)
  • -email is unavailable- added by cernekee
  • -email is unavailable- added by cernekee
  • -email is unavailable- added by cernekee
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-03 simons StatusNone Done
        Assigned toNone simons
        Open/ClosedOpen Closed
    2014-12-02 cernekee Attached File- Added 0001-AX_CHECK_VSCRIPT-initial-version.patch, #32587
        Carbon-Copy- Added dwmw2
        Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code