* Fix to btrfs-progs to avoid "underlinking"
@ 2011-06-05 16:41 Joe Peterson
0 siblings, 0 replies; only message in thread
From: Joe Peterson @ 2011-06-05 16:41 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
Attached is a simple patch to the makefile line that builds "convert".
It explicitly includes libcom_err, which is implicitly pulled in by
libext2fs. This fixes a what is called "underlinking" in this blog
post:
http://blog.flameeyes.eu/2010/11/26/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing
Apparently, this condition causes links to fail using the "gold link
editor", and it can cause future library version incompatibilities to
not be detected (so that affected programs can be rebuilt).
-Joe
[Note: please CC my email address in any responses]
[-- Attachment #2: btrfs-progs-0.19-fix-underlinking.patch --]
[-- Type: text/x-patch, Size: 579 bytes --]
--- btrfs-progs-0.19/Makefile~ 2011-06-05 10:21:04.000000000 -0600
+++ btrfs-progs-0.19/Makefile 2011-06-05 10:21:46.000000000 -0600
@@ -75,7 +75,7 @@ quick-test: $(objects) quick-test.o
gcc $(CFLAGS) -o quick-test $(objects) quick-test.o $(LDFLAGS) $(LIBS)
convert: $(objects) convert.o
- gcc $(CFLAGS) -o btrfs-convert $(objects) convert.o -lext2fs $(LDFLAGS) $(LIBS)
+ gcc $(CFLAGS) -o btrfs-convert $(objects) convert.o -lext2fs -lcom_err $(LDFLAGS) $(LIBS)
ioctl-test: $(objects) ioctl-test.o
gcc $(CFLAGS) -o ioctl-test $(objects) ioctl-test.o $(LDFLAGS) $(LIBS)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-05 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 16:41 Fix to btrfs-progs to avoid "underlinking" Joe Peterson
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 NNTP newsgroup(s).