Lesson plan
Libiberty
GNU libiberty is a software library with a collection of subroutines used by various GNU programs. The library is now a decommissioned GNU package. It was originally intended to be a sort of standard cross-platform library, thus enabling it to be linked (using the usual Unix library form) by just passing "-liberty" to the compiler. The contents consisted of a variety of useful functions. However, the development of standards for C and POSIX took away some of the impetus for this, and libiberty came to be used primarily as a support library for the GNU toolchain. It still contains a minimal set of functions that are either GNU extensions or occasionally unimplemented parts of the standard. Copies of libiberty are distributed with gcc, gdb, and the binutils. libiberty is not otherwise versioned or released separately. One important piece of libiberty functionality is a demangler for C++ and D, included so that it is available to both binutils and GDB. The name is a pun or word play on the word "liberty". On Unix-like operating systems, library files are always named "lib" + the name of the library. But when they are linked to with a C compiler command ( cc , gcc , etc.), the command line flag specifying the library is -l followed by the part of the library name after "lib". In libiberty's case it therefore becomes -liberty .
Article summary
GNU libiberty is a software library with a collection of subroutines used by various GNU programs. The library is now a decommissioned GNU package. It was originally intended to be a sort of standard cross-platform library, thus enabling it to be linked (using the usual Unix library form) by just passing "-liberty" to the compiler. The contents consisted of a variety of useful functions. However, the development of standards for C and POSIX took away some of the impetus for this, and libiberty came to be used primarily as a support library for the GNU toolchain. It still contains a minimal set of functions that are either GNU extensions or occasionally unimplemented parts of the standard. Copies of libiberty are distributed with gcc, gdb, and the binutils. libiberty is not otherwise versioned or released separately. One important piece of libiberty functionality is a demangler for C++ and D, included so that it is available to both binutils and GDB. The name is a pun or word play on the word "liberty". On Unix-like operating systems, library files are always named "lib" + the name of the library. But when they are linked to with a C compiler command ( cc , gcc , etc.), the command line flag specifying the library is -l followed by the part of the library name after "lib". In libiberty's case it therefore becomes -liberty .
Key claims
No claims recorded.
Discussion questions
- Summarise the article in your own words. Which single claim would you verify first, and why?
- Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
- If two sources disagreed about one of these facts, what would you need in order to trust one over the other?
Bibliography
No sources recorded.
Key claims and bibliography are generated from the same tracked claims and sources as the article page.