aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2001-12-05 03:12:06 +0800
committerpetef <petef@FreeBSD.org>2001-12-05 03:12:06 +0800
commiteb45fe3cd4b0db9f878178492d51dbe92bc2c8d1 (patch)
tree65459c4d97791e6fb20e50c129c06b37e64deb06 /devel
parentcc440f4e03c5788e3f003e7ec03df07f09036a80 (diff)
downloadfreebsd-ports-gnome-eb45fe3cd4b0db9f878178492d51dbe92bc2c8d1.tar.gz
freebsd-ports-gnome-eb45fe3cd4b0db9f878178492d51dbe92bc2c8d1.tar.zst
freebsd-ports-gnome-eb45fe3cd4b0db9f878178492d51dbe92bc2c8d1.zip
Actually make objprelink work on FreeBSD.
Submitted by: Bradley T Hughes <bhughes@trolltech.com> Approved by: will
Diffstat (limited to 'devel')
-rw-r--r--devel/objprelink/files/patch-objprelink.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/objprelink/files/patch-objprelink.c b/devel/objprelink/files/patch-objprelink.c
new file mode 100644
index 000000000000..d5c84d6c5876
--- /dev/null
+++ b/devel/objprelink/files/patch-objprelink.c
@@ -0,0 +1,19 @@
+$FreeBSD$
+
+--- objprelink.c.orig Tue Dec 4 14:01:10 2001
++++ objprelink.c Tue Dec 4 14:01:49 2001
+@@ -239,12 +239,12 @@
+ is_vt_section(bfd *abfd, asection *p)
+ {
+ const char *name = bfd_section_name(abfd, p);
+- static const char prefix[] = ".gnu.linkonce.d.__vt_";
++ static const char prefix[] = ".gnu.linkonce.d._vt";
+ static flagword w = (SEC_ALLOC|SEC_LOAD|SEC_RELOC|SEC_DATA|SEC_LINK_ONCE);
+ flagword f = bfd_get_section_flags (abfd, p);
+ if (f & w == w)
+ if (!strncmp(name, prefix, sizeof(prefix)-1))
+- return name + sizeof(prefix)-6;
++ return name + sizeof(prefix)-4;
+ return false;
+ }
+