[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/10] lib-fs-resize: use linker script to expose only selected f
From: |
Jim Meyering |
Subject: |
[PATCH 07/10] lib-fs-resize: use linker script to expose only selected functions |
Date: |
Fri, 3 Feb 2012 22:46:56 +0100 |
From: Jim Meyering <address@hidden>
* libparted/fs/Makefile.am (libparted_fs_resize_la_LDFLAGS): Define.
(EXTRA_DIST): Distribute the new file.
(libparted_fs_resize_la_DEPENDENCIES): Make the library depend on it.
* libparted/fs/fsresize.sym: New file.
---
libparted/fs/Makefile.am | 7 ++++++-
libparted/fs/fsresize.sym | 13 +++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
create mode 100644 libparted/fs/fsresize.sym
diff --git a/libparted/fs/Makefile.am b/libparted/fs/Makefile.am
index 9dd37fc..05921b5 100644
--- a/libparted/fs/Makefile.am
+++ b/libparted/fs/Makefile.am
@@ -65,7 +65,12 @@ CURRENT = 0
REVISION = 0
AGE = 0
-libparted_fs_resize_la_LDFLAGS = -version-info $(CURRENT):$(REVISION):$(AGE)
+libparted_fs_resize_la_LDFLAGS = \
+ -Wl,--version-script=fsresize.sym \
+ -version-info $(CURRENT):$(REVISION):$(AGE)
+EXTRA_DIST += fsresize.sym
+libparted_fs_resize_la_DEPENDENCIES = fsresize.sym
+
libparted_fs_resize_la_SOURCES = \
r/filesys.c \
r/fat/bootsector.c \
diff --git a/libparted/fs/fsresize.sym b/libparted/fs/fsresize.sym
new file mode 100644
index 0000000..86829d1
--- /dev/null
+++ b/libparted/fs/fsresize.sym
@@ -0,0 +1,13 @@
+# This is an LD linker script.
+# Expose only the functions named below.
+
+LIBPARTED_FS_RESIZE_0.0.0 {
+ global:
+ ped_file_system_close;
+ ped_file_system_get_resize_constraint;
+ ped_file_system_open;
+ ped_file_system_resize;
+
+ local:
+ *;
+};
--
1.7.9.112.gb85f2
- libparted-fs-resize: HFS/FAT file system resizing library, Jim Meyering, 2012/02/03
- [PATCH 01/10] maint: remove now-unused fat-related functions, Jim Meyering, 2012/02/03
- [PATCH 07/10] lib-fs-resize: use linker script to expose only selected functions,
Jim Meyering <=
- [PATCH 03/10] update copyrights in r/, Jim Meyering, 2012/02/03
- [PATCH 04/10] lib-fs-resize: add wrappers for open, close, resize, get_resize_constraint, Jim Meyering, 2012/02/03
- [PATCH 05/10] lib-fs-resize: rewrite ped_file_system_clobber, Jim Meyering, 2012/02/03
- [PATCH 10/10] doc: mention HFS+/FAT file system resizing in NEWS, Jim Meyering, 2012/02/03
- [PATCH 09/10] tests: test FAT and HFS file system resizing, Jim Meyering, 2012/02/03
- [PATCH 08/10] tests: add FS-resize test driver, Jim Meyering, 2012/02/03
- [PATCH 06/10] maint: remove r/hfs/DOC,HISTORY,TODO; add VERSION for new library, Jim Meyering, 2012/02/03
- [PATCH 02/10] lib-fs-resize: re-add HFS and FAT file-system-related code, Jim Meyering, 2012/02/03
- Re: libparted-fs-resize: HFS/FAT file system resizing library, Curtis Gedak, 2012/02/03
- Re: libparted-fs-resize: HFS/FAT file system resizing library, Curtis Gedak, 2012/02/04