On 12/06/2011 08:43 PM, Ali Bahrami wrote:
...
I'll take your word for the fact that those cryptic headers have
the effect you described... :-)
The use of 'elfdump -d' to examine the resulting object is
a good idea. Have you verified the link-editor search path?
% LD_OPTIONS=-Dargs gcc hello.c
Here's the output from that (/tmp/t.c is my hello.c):
$ LD_OPTIONS=-Dargs gcc /tmp/t.c
debug:
debug: Solaris Linkers: 5.11-1.2282
debug:
debug: arg[1] option=-D: option-argument: args
debug: arg[2] option=-Y: option-argument: P,/usr/sfw/lib:/lib:/usr/lib
debug: arg[4] option=-R: option-argument: /usr/sfw/lib
debug: arg[6] option=-Q: option-argument: y
debug: arg[11] option=-L: option-argument:
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3
debug: arg[12] option=-L: option-argument:
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../..
debug: arg[14] option=-l: option-argument: gcc
debug: arg[15] option=-l: option-argument: gcc_eh
debug: arg[16] option=-l: option-argument: c
debug: arg[17] option=-l: option-argument: gcc
debug: arg[18] option=-l: option-argument: gcc_eh
debug: arg[1] option=-D: option-argument: args
debug: arg[7] file=/usr/lib/crt1.o
debug:
debug: arg[8] file=/usr/lib/crti.o
debug:
debug: arg[9] file=/usr/lib/values-Xa.o
debug:
debug: arg[10] file=/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtbegin.o
debug:
debug: arg[11] option=-L: option-argument:
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3
debug: arg[12] option=-L: option-argument:
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../..
debug: arg[13] file=/var/tmp//cc4gaGTM.o
debug:
debug: arg[14] option=-l: option-argument: gcc
debug: arg[15] option=-l: option-argument: gcc_eh
debug: arg[16] option=-l: option-argument: c
debug:
debug: arg[17] option=-l: option-argument: gcc
debug: arg[18] option=-l: option-argument: gcc_eh
debug: arg[19] file=/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtend.o
debug:
debug: arg[20] file=/usr/lib/crtn.o
debug:
$
And it might be good insurance to do an ON build with __GNUC to
ensure that those continue to work. I wouldn't expect this to break
them, but as I learned again last week, it's best not to guess.
Good idea. I'll start one of those going and report back.
Looks good to me...
Thanks.
_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss