>> Can someone give a more detailed explanation of what -rdynamic
>> does exactly?
I'm unclear of its exact function at this point. A scan of the
gcc-2.95.2, gcc-2.95.3, and Monday's gcc-20010423 snapshot of the 3.0
development info files, man pages, and --help output revealed no
mention of -rdynamic, so this morning, I filed a bug report on its
lack of documentation to gcc-bugs@xxxxxxxxxxxx
A scan of the gcc-2.95.3 source tree turns up these only these
references, which all look like a simple remap of the switch to
-export-dynamic passed to the linker, collect2.
% grep rdynamic `find . -type f`
./gcc/config/alpha/elf.h: %{rdynamic:-export-dynamic} \
./gcc/config/arm/linux-elf.h: %{rdynamic:-export-dynamic} \
./gcc/config/i386/freebsd-elf.h: %{rdynamic:-export-dynamic} \
./gcc/config/i386/gnu.h: %{rdynamic:-export-dynamic} \
./gcc/config/i386/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/i386/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/i386/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/m68k/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/m68k/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/m68k/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/mips/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/rs6000/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/sparc/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/sparc/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/sparc/linux.h: %{rdynamic:-export-dynamic} \
./gcc/config/sparc/linux64.h: %{rdynamic:-export-dynamic} \
./gcc/config/sparc/linux64.h: %{rdynamic:-export-dynamic} \
./gcc/config/sparc/linux64.h: %{rdynamic:-export-dynamic} \
Another grep for export-dynamic showed the above, plus these:
./ltconfig: export_dynamic_flag_spec='${wl}--export-dynamic'
./ltmain.sh: -export-dynamic)
./ltmain.sh: # If -module or -export-dynamic was specified, set the dlname.
./ltmain.sh: $echo "$modename: error: \`-dlopen self' requires
\`-export-dynamic'" 1>&2
./ltmain.sh: test -n "$library_names" && $echo "$modename: warning:
\`$file' was not linked with \`-export-dynamic'"
./ltmain.sh: -export-dynamic allow symbols from OUTPUT-FILE to be resolved
with dlsym(3)
In particular, I see no evidence of the -rdynamic flag affecting code
generation.
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- Center for Scientific Computing FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah Internet e-mail: beebe@xxxxxxxxxxxxx -
- Department of Mathematics, 322 INSCC beebe@xxxxxxx beebe@xxxxxxxxxxxx -
- 155 S 1400 E RM 233 beebe@xxxxxxxx -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe -
-------------------------------------------------------------------------------
|