Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42853
b: refs/heads/master
c: 386d9a7
h: refs/heads/master
i:
  42851: 4de3da9
v: v3
  • Loading branch information
Magnus Damm authored and Linus Torvalds committed Dec 7, 2006
1 parent 0aacb82 commit 20ef9fc
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 651971cb7242e8f6d7ebd153e69bd271cb731223
refs/heads/master: 386d9a7edd9f3492c99124b0a659e9ed7abb30f9
2 changes: 0 additions & 2 deletions trunk/arch/ia64/ia32/ia32priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ struct old_linux32_dirent {
void ia64_elf32_init(struct pt_regs *regs);
#define ELF_PLAT_INIT(_r, load_addr) ia64_elf32_init(_r)

#define elf_addr_t u32

/* This macro yields a bitmask that programs can use to figure out
what instruction set this CPU supports. */
#define ELF_HWCAP 0
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/mips/kernel/binfmt_elfn32.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ struct elf_prpsinfo32
char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
};

#define elf_addr_t u32
#define elf_caddr_t u32
#define init_elf_binfmt init_elfn32_binfmt

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/mips/kernel/binfmt_elfo32.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ struct elf_prpsinfo32
char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
};

#define elf_addr_t u32
#define elf_caddr_t u32
#define init_elf_binfmt init_elf32_binfmt

Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/mips/kernel/irixelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ static struct linux_binfmt irix_format = {
irix_core_dump, PAGE_SIZE
};

#ifndef elf_addr_t
#define elf_addr_t unsigned long
#endif

#ifdef DEBUG
/* Debugging routines. */
static char *get_elf_p_type(Elf32_Word p_type)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/parisc/kernel/binfmt_elf32.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ struct elf_prpsinfo32
char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
};

#define elf_addr_t unsigned int
#define init_elf_binfmt init_elf32_binfmt

#define ELF_PLATFORM ("PARISC32\0")
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/s390/kernel/binfmt_elf32.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ struct elf_prpsinfo32

#include <linux/highuid.h>

#define elf_addr_t u32
/*
#define init_elf_binfmt init_elf32_binfmt
*/
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sparc64/kernel/binfmt_elf32.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ cputime_to_compat_timeval(const cputime_t cputime, struct compat_timeval *value)
value->tv_sec = jiffies / HZ;
}

#define elf_addr_t u32
#undef start_thread
#define start_thread start_thread32
#define init_elf_binfmt init_elf32_binfmt
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86_64/ia32/ia32_binfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ MODULE_AUTHOR("Eric Youngdale, Andi Kleen");
#undef MODULE_DESCRIPTION
#undef MODULE_AUTHOR

#define elf_addr_t __u32

static void elf32_init(struct pt_regs *);

#define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
Expand Down
4 changes: 0 additions & 4 deletions trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs);
static int load_elf_library(struct file *);
static unsigned long elf_map (struct file *, unsigned long, struct elf_phdr *, int, int);

#ifndef elf_addr_t
#define elf_addr_t unsigned long
#endif

/*
* If we don't support core dumping, then supply a NULL so we
* don't even try.
Expand Down
3 changes: 0 additions & 3 deletions trunk/fs/binfmt_elf_fdpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
#include <asm/pgalloc.h>

typedef char *elf_caddr_t;
#ifndef elf_addr_t
#define elf_addr_t unsigned long
#endif

#if 0
#define kdebug(fmt, ...) printk("FDPIC "fmt"\n" ,##__VA_ARGS__ )
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-powerpc/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ typedef elf_greg_t32 elf_gregset_t32[ELF_NGREG];
# define ELF_DATA ELFDATA2MSB
typedef elf_greg_t64 elf_greg_t;
typedef elf_gregset_t64 elf_gregset_t;
# define elf_addr_t unsigned long
#else
/* Assumption: ELF_ARCH == EM_PPC and ELF_CLASS == ELFCLASS32 */
typedef elf_greg_t32 elf_greg_t;
typedef elf_gregset_t32 elf_gregset_t;
# define elf_addr_t __u32
#endif /* ELF_ARCH */

/* Floating point registers */
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,15 @@ extern Elf32_Dyn _DYNAMIC [];
#define elfhdr elf32_hdr
#define elf_phdr elf32_phdr
#define elf_note elf32_note
#define elf_addr_t Elf32_Off

#else

extern Elf64_Dyn _DYNAMIC [];
#define elfhdr elf64_hdr
#define elf_phdr elf64_phdr
#define elf_note elf64_note
#define elf_addr_t Elf64_Off

#endif

Expand Down

0 comments on commit 20ef9fc

Please sign in to comment.