Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Static linking (try it at home!) [was: kernel update snafu]
- Date: Sat, 21 Jun 2014 11:51:23 +0800
- From: Raymond Wan <rwan.kyoto@example.com>
- Subject: Re: [tlug] Static linking (try it at home!) [was: kernel update snafu]
- References: <CABHGxq578Vh4zFgTRRc2JKtWz=ua74J5bdJULNQeTzyeD6hkxQ@mail.gmail.com> <53A1726F.5030500@imaginatorium.org> <CAAhy3duLPCTPQ3SwO896mOXRHXrMQMSQj_JgeGWZLZgTDW8XCg@mail.gmail.com> <CAKXLc7ebGJbRB5sE9cHXa7JeTixcD-hCL3HdAmF363ikK5B_aw@mail.gmail.com> <CAAhy3duOKji5UNbz2UMmq5jKXqi0e=_dG4Csh2EAt1sUA1m-NQ@mail.gmail.com> <8761jw13jk.fsf@uwakimon.sk.tsukuba.ac.jp>
On Fri, Jun 20, 2014 at 2:46 PM, Stephen J. Turnbull <stephen@example.com> wrote: > Raymond Wan writes: > > > > AFAIR, you cannot statically link glibc. So you'll need 32-bit glibc. > > > Basically if you can run other 32-bit software you should be fine. > > > > Ah...I guess I never ran a 32-bit program on this system before. And > > I didn't know that you cannot statistically link to glibc. I fed it > > to "ldd" and it didn't report that. > > I don't think that's strictly true. Remember, a static library is > *not* a monolithic object file, but rather a bundle of objects each of > which will be added to the resulting binary "as needed" (ie, if an > entry point is referenced by a module already linked in the program). > So if all you want to do is use printf, you *can* statically link. ... Thanks for this! Was wondering about it...especially as I was reading this discussion. But never thought of (i.e., was too lazy) to take it one step further and actually give it a try... Definitely good to know; thanks! Ray
- References:
- [tlug] Ubuntu 10.04 - kernel update snafu
- From: Jim Breen
- Re: [tlug] Ubuntu 10.04 - kernel update snafu
- From: Brian Chandler
- Re: [tlug] Ubuntu 10.04 - kernel update snafu
- From: Raymond Wan
- Re: [tlug] Ubuntu 10.04 - kernel update snafu
- From: Kalin KOZHUHAROV
- Re: [tlug] Ubuntu 10.04 - kernel update snafu
- From: Raymond Wan
- [tlug] Static linking (try it at home!) [was: kernel update snafu]
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Ubuntu 10.04 - kernel update snafu
- Next by Date: Re: [tlug] Ubuntu 10.04 - kernel update snafu
- Previous by thread: Re: [tlug] Static linking (try it at home!) [was: kernel update snafu]
- Next by thread: Re: [tlug] Ubuntu 10.04 - kernel update snafu
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links