| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 2503.1 | Thanks for your report. | 16.31.32.59::KAO |  | Thu Mar 30 1995 12:49 | 5 | 
| 2503.2 | cc problem | DECCXL::MITCHELL |  | Thu Mar 30 1995 13:41 | 5 | 
| 2503.3 | Creating shared libraries | AUSSIE::DAYAN | Dany Dayan, CSS Eng. Sydney, DTN 730 6419, SNA-2 | Sun Apr 30 1995 23:37 | 40 | 
| 2503.4 | need to call ld directly | DECC::SEIGEL |  | Mon May 01 1995 08:30 | 8 | 
| 2503.5 | Problem with build sharable image on OSF | CADSYS::VICTOR |  | Wed May 03 1995 14:52 | 44 | 
| 2503.6 |  | DECCXX::KIMMEL |  | Wed May 03 1995 15:31 | 10 | 
| 2503.7 | Problems creating Shareand C++ | ALFAXP::KENDRIX | John Kendrix - DTN: 343-1739 | Fri Oct 06 1995 17:47 | 15 | 
| 2503.8 |  | DECCXX::KIMMEL |  | Mon Oct 09 1995 07:47 | 11 | 
| 2503.9 | But should it work? | ALFAXP::KENDRIX | John Kendrix - DTN: 343-1739 | Wed Oct 11 1995 12:03 | 8 | 
| 2503.10 | No known template restriction; an example | DECCXX::AMARTIN | Alan H. Martin | Wed Oct 11 1995 13:38 | 98 | 
| 2503.11 | Thanks Alan | ALFAXP::KENDRIX | John Kendrix - DTN: 343-1739 | Wed Oct 11 1995 14:10 | 0 | 
| 2503.12 | C++ Shared Objects Cause dlopen() seg fault | LORENZ::ROSE |  | Thu May 09 1996 18:18 | 103 | 
| 2503.13 | Please read the release notes | DECCXX::AMARTIN | Alan H. Martin | Thu May 09 1996 21:55 | 14 | 
| 2503.14 |  | DECCXX::AMARTIN | Alan H. Martin | Thu Nov 14 1996 17:08 | 147 | 
| 2503.15 | cxx doesn't pass -hidden and -non-hidden flags | RDGENG::READINGS_R | Richard Readings | Thu Jan 23 1997 07:59 | 7 | 
| 2503.16 | use -Wl | DECC::SEIGEL |  | Thu Jan 23 1997 08:24 | 4 | 
| 2503.17 | Parameters jumbled | RDGENG::READINGS_R | Richard Readings | Fri Jan 24 1997 08:45 | 16 | 
|  | > try using the cxx -Wl switch to pass stuff to ld.  For example: -Wl,-hidden
> will pass -hidden to ld.
I'm trying to hide symbols in dso.o, but -hidden and -non_hidden are separated from
dso.o...
# cxx -shared -o dso.so -Wl,-hidden dso.o -Wl,-non_hidden -v
generates...
# /usr/lib/cmplrs/cc/ld -o dso.so -hidden -non_hidden -g0 -O1 -shared
/usr/lib/cmplrs/cxx/_main.o dso.o -lcxxstd -lcxx -lexc -lc
Is there any way to keep them together?
Richard
 | 
| 2503.18 |  | DECC::SEIGEL |  | Fri Jan 24 1997 09:50 | 6 | 
|  | Try this: -Wl,-hidden,dso.o
Please see the C++ man page for more information about how to pass switches
using -W.
Harold
 | 
| 2503.19 | cxx fooled | RDGENG::READINGS_R | Richard Readings | Tue Jan 28 1997 03:24 | 8 | 
|  | Re .18
>Try this: -Wl,-hidden,dso.o
Unfortunately cxx then thinks it has no objects to process so returns 
immediately. I've checked -Wl on the man page but that doesn't help.
Richard
 | 
| 2503.20 | Hack time: generate a .o file from an empty .cxx file and give that to cxx | WIDTH::MDAVIS | Mark Davis - compiler maniac | Tue Jan 28 1997 11:04 | 19 | 
|  | tagged 422% touch null.cxx
tagged 423% ll null.cxx
-rw-rw-r--   1 mdavis   system         0 Jan 28 11:03 null.cxx
tagged 424% cxx -c null.cxx
tagged 425% ll null.o
-rw-rw-r--   1 mdavis   system       400 Jan 28 11:03 null.o
tagged 427% cxx -v -o hello.so -shared -Wl,-hidden,hello.o,-non_hidden null.o
...
/usr/lib/cmplrs/cc/ld -o hello.so -hidden hello.o -non_hidden -g0 -O1 -shared \
     /usr/lib/cmplrs/cxx/_main.o null.o -lcxxstd -lcxx -lexc -lc 
NB: I first tried feeding /dev/null to cxx, but the linker was unhappy - it 
wanted a COFF format file.  That's why I compiled the empty file to generate
a COFF file with nothing interesting in it.
Mark Davis
c/c++ team
 |