Sponsored Content
Full Discussion: -bsymbolic vs -Bsymbolic
Operating Systems AIX -bsymbolic vs -Bsymbolic Post 302509366 by DGPickett on Wednesday 30th of March 2011 03:44:01 PM
Old 03-30-2011
The first:
Help -

symbolicAssigns the symbolic attribute to most symbols exported without an explicit attribute. For more information, see "Attributes of Exported Symbols" that follows. This is the default when the svr4 option is used; otherwise, the default is the symbolic- option.

Attributes of Exported Symbols

When you use run-time linking, a reference to a symbol in the same module can only be rebound if the symbol is exported with the proper attribute. References to symbols with the symbolic attribute cannot be rebound. References to symbols with the nosymbolic attribute can be rebound. References to symbols with the nosymbolic- attribute can be rebound if the symbols are variables. For function symbols, calls using a function pointer can be rebound, while direct function calls cannot be rebound. The nosymbolic- attribute is the default and is provided for compatibility with previous versions of the operating system, but its use is not recommended.
If you are not using the run-time linker, avoid using the nosymbolic attribute because intra-module function calls will be made indirectly through a function descriptor using global-linkage code. Otherwise, the attribute of exported symbols has no effect for modules used with programs that do not use the run-time linker.
You can specify an explicit export attribute for symbols listed in an export file. Most symbols without an explicit attribute are exported with the default export attribute, as specified with the symbolic, nosymbolic, or nosymbolic- options.
The weak export attribute will mark the associated symbol's mapping type with L_WEAK in the loader section.
Imported symbols may only have the weak export attribute. If a symbol is imported from another module, all references to the symbol can be rebound. However, if a symbol is imported at a fixed address, all references are bound to this fixed address and cannot be rebound by the run-time linker. The system loader must resolve deferred imports. The run-time linker never resolves or rebinds references to deferred imports.
For exports of non-imported symbols, the following rules are used.
  • If a symbol has the list attribute, it is listed in the loader section symbol table, but the L_EXPORT flag is not set in the symbol table entry. The run-time linker ignores such symbols.
  • If a symbol was exported with an explicit attribute, the explicit attribute is used.
  • If the symbol is a BSS symbol, it is exported with the nosymbolic attribute.
  • Otherwise, the symbol is exported with the global attribute, as specified by the symbolic, nosymbolic, or nosymbolic- option. The default global attribute is nosymbolic-.
The Second, some AIX use SunWSPro CC, you did not say which cc, with -B:
A P P E N D I X B - C Compiler Options Reference but no symbolic.

Maybe ld is patronizing you and taking -Bsymbolic as -bsymbolic? Gnu GCC has it:

Using LD, the GNU linker
 
redland-config(1)					      General Commands Manual						 redland-config(1)

NAME
redland-config - script to get information about the installed version of Redland SYNOPSIS
redland-config [--cflags] [--help] [--libs] [--libtool-libs] [--prefix[=DIR]] [--private-libs] [--version-decimal] [--version] DESCRIPTION
redland-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use the Redland RDF library. OPTIONS
redland-config accepts the following options: --version Print the currently installed version of redland on the standard output. --version-decimal Print the currently installed version of redland as a decimal integer. --libs Print the linker flags that are necessary to link a redland program. This excludes linker arguments used to build the librdf shared library. --libtool-libs Print the flags that are necessary to link a redland program with libtool. --private-libs Print the linker flags that are necessary to build the librdf shared library. This option is not usually needed because the librdf shared library has already been dynamically linked against these libs. --cflags Print the compiler flags that are necessary to compile a redland program. --prefix=PREFIX If specified, use PREFIX instead of the installation prefix that redland was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. SEE ALSO
redland(3), AUTHOR
Dave Beckett - http://www.dajobe.org/ <http://www.dajobe.org/> 2008-09-07 redland-config(1)
All times are GMT -4. The time now is 08:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy