Skip to content

Commit

Permalink
binfmt_flat: move the MAX_SHARED_LIBS definition to binfmt_flat.c
Browse files Browse the repository at this point in the history
MAX_SHARED_LIBS is an implementation detail of the kernel loader,
and should be kept away from the file format definition.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
  • Loading branch information
Christoph Hellwig authored and Greg Ungerer committed Jun 23, 2019
1 parent 6843d8a commit a445d98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions fs/binfmt_flat.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
#define RELOC_FAILED 0xff00ff01 /* Relocation incorrect somewhere */
#define UNLOADED_LIB 0x7ff000ff /* Placeholder for unused library */

#ifdef CONFIG_BINFMT_SHARED_FLAT
#define MAX_SHARED_LIBS (4)
#else
#define MAX_SHARED_LIBS (1)
#endif

struct lib_info {
struct {
unsigned long start_code; /* Start of text segment */
Expand Down
6 changes: 0 additions & 6 deletions include/linux/flat.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@

#define FLAT_VERSION 0x00000004L

#ifdef CONFIG_BINFMT_SHARED_FLAT
#define MAX_SHARED_LIBS (4)
#else
#define MAX_SHARED_LIBS (1)
#endif

/*
* To make everything easier to port and manage cross platform
* development, all fields are in network byte order.
Expand Down

0 comments on commit a445d98

Please sign in to comment.