This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12234] iconvlist API


http://sourceware.org/bugzilla/show_bug.cgi?id=12234

--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2010-12-07 08:20:15 UTC ---
(In reply to comment #3)
> such an interface doesn't belong into libc.
> Except for your use there is no known user.

This is a chicken-and-egg problem.  How there can be a user of nonexisting API?


> The only possibility I'd except is to make the iconv program a PIE.  Then you
> could dlopen() the file and call a special function.

This idea contradicts "How To Write Shared Libraries", section 1.6.
  Number of Objects: The fact that a smaller number of objects containing
  the same functionality is beneficial has been mentioned in several places
  [...]


> But is it really worth the time?  The forking really shouldn't be that
> expensive.

Isn't the prelink optimizing an even cheaper operation - dynamic relocating?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]