public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: glibc 2.1 and gabi
@ 2000-07-20 12:26 Nick Clifton
  2000-07-20 12:41 ` H . J . Lu
  0 siblings, 1 reply; 25+ messages in thread
From: Nick Clifton @ 2000-07-20 12:26 UTC (permalink / raw)
  To: hjl; +Cc: binutils, ian

Hi H.J.

: > Do we need a switch, or can this be determined "magically" by
: > examining the input files ?
: 
: No. It is a runtime thing. The same binaries run fine under glibc 2.2.

Oh, OK.


: Well, it is kind of misleading since glibc 2.1 does support dynamic
: tags. It just doesn't support the unknown tags in certain range.
: 
: --enable-new-dynamic-tags
: --no-enable-new-dynamic-tags
: 
: is better.

That is OK with me.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: glibc 2.1 and gabi
@ 2000-07-24 10:52 Nick Clifton
  0 siblings, 0 replies; 25+ messages in thread
From: Nick Clifton @ 2000-07-24 10:52 UTC (permalink / raw)
  To: hjl; +Cc: ac131313, binutils

Hi H.J., Hi Andrew,

: > > --disable-new-dynamic-tags
: > > --enable-new-dynamic-tags
: > 
: > Um, do you really want to call something ``new''.  Similar to the
: > comment I just posted to GCC-patches, it will be old soon enough.
: 
: I don't mind too much about a different choice. You have to ask Nick.
: But that means we have to change glibc since it has used it already.
: If we make the change now, I hope it won't be too bad.

It is not important enough to be worth changing now, so lets leave
things as they are.

I do agree with Andrew's point though, so in the future lets see if we
can try to avoid using 'new' in situations like this.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: glibc 2.1 and gabi
@ 2000-07-20 14:12 Nick Clifton
  2000-07-20 15:00 ` H . J . Lu
  0 siblings, 1 reply; 25+ messages in thread
From: Nick Clifton @ 2000-07-20 14:12 UTC (permalink / raw)
  To: hjl; +Cc: binutils, ian

Hi H.J.

: 2000-07-20  H.J. Lu  <hjl@gnu.org>
: 
: 	* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
: 	DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
: 
: 	* bfdlink.h (bfd_link_info): Add new_dtags.
: 
: 	* ld/ld.texinfo: Add documentation for --disable-new-dtags and
: 	--enable-new-dtags.
: 
: 	* ldmain.c (main): Initialize link_info.new_dtags to false.
: 
: 	* emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
: 	--disable-new-dtags and --enable-new-dtags.
: 	(gld_${EMULATION_NAME}_list_options): Likewise.

Approved.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: glibc 2.1 and gabi
@ 2000-07-20 13:17 Nick Clifton
  2000-07-20 13:55 ` H . J . Lu
  0 siblings, 1 reply; 25+ messages in thread
From: Nick Clifton @ 2000-07-20 13:17 UTC (permalink / raw)
  To: hjl; +Cc: binutils, ian

Hi H.J.

: How about just
: 
: --disable-new-dynamic-tags
: --enable-new-dynamic-tags

Sure :-)

Cheers
	Nick

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: glibc 2.1 and gabi
@ 2000-07-20 12:06 Nick Clifton
  2000-07-20 12:12 ` H . J . Lu
  0 siblings, 1 reply; 25+ messages in thread
From: Nick Clifton @ 2000-07-20 12:06 UTC (permalink / raw)
  To: hjl; +Cc: libc-hacker, binutils, ian, nick

Hi H.J.

: I added support for the new DT tags from the new gABI. However, glibc
: 2.1 doesn't support them. I got
: 
: BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed!
: 
: on DT_RUNPATH and DT_FLAGS when -Bsymbolic and -rpath are used. I
: checked Solaris 2.7. Solaris ld.so doesn't complain DT_RUNPATH nor
: DT_FLAGS which it doesn't know. I tend to think it is a glibc 2.1 bug.
: But I don't want to break glibc 2.1. I'd like to add a new option
: to ld to turn on the support for the new DT tags. Any suggestions?
: I am thinking of "-z gabi" for lack of imagination :-). 

Do we need a switch, or can this be determined "magically" by
examining the input files ?

If we need a switch, then I would suggest:

  --enable-dynamic-tags

and:

  --no-enable-dynamic-tags

which presumably would be the default.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 25+ messages in thread
* glibc 2.1 and gabi
@ 2000-07-20 11:42 H . J . Lu
  2000-07-20 13:23 ` Geoff Keating
  0 siblings, 1 reply; 25+ messages in thread
From: H . J . Lu @ 2000-07-20 11:42 UTC (permalink / raw)
  To: GNU C Library, binutils, Ian Lance Taylor, nick

Hi,

I added support for the new DT tags from the new gABI. However, glibc
2.1 doesn't support them. I got

BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed!

on DT_RUNPATH and DT_FLAGS when -Bsymbolic and -rpath are used. I
checked Solaris 2.7. Solaris ld.so doesn't complain DT_RUNPATH nor
DT_FLAGS which it doesn't know. I tend to think it is a glibc 2.1 bug.
But I don't want to break glibc 2.1. I'd like to add a new option
to ld to turn on the support for the new DT tags. Any suggestions?
I am thinking of "-z gabi" for lack of imagination :-). 

Thanks.


H.J.

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2000-07-24 10:52 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-20 12:26 glibc 2.1 and gabi Nick Clifton
2000-07-20 12:41 ` H . J . Lu
2000-07-23 20:18   ` Andrew Cagney
2000-07-23 21:01     ` H . J . Lu
  -- strict thread matches above, loose matches on Subject: below --
2000-07-24 10:52 Nick Clifton
2000-07-20 14:12 Nick Clifton
2000-07-20 15:00 ` H . J . Lu
2000-07-20 13:17 Nick Clifton
2000-07-20 13:55 ` H . J . Lu
2000-07-20 12:06 Nick Clifton
2000-07-20 12:12 ` H . J . Lu
2000-07-20 11:42 H . J . Lu
2000-07-20 13:23 ` Geoff Keating
2000-07-20 13:57   ` H . J . Lu
2000-07-20 15:47     ` Geoff Keating
2000-07-20 15:52       ` H . J . Lu
2000-07-20 16:12         ` Geoff Keating
2000-07-20 17:10           ` H . J . Lu
2000-07-20 20:28             ` Geoff Keating
2000-07-20 21:15               ` H . J . Lu
2000-07-20 23:13                 ` Geoff Keating
2000-07-20 23:22                   ` H . J . Lu
2000-07-21  0:19                     ` Mark Kettenis
2000-07-21  9:01                       ` H . J . Lu
2000-07-21  9:07                         ` H . J . Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).