[U-Boot] [RFC PATCH 2/7] reboard: Add generic link symbols

Simon Glass sjg at chromium.org
Tue Nov 22 00:57:55 CET 2011


Create a separate header file for link symbols defined by the link
scripts. It is helpful to have these all in one place and try to
make them common across architectures.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 include/asm-generic/link_symbols.h |   38 ++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-generic/link_symbols.h

diff --git a/include/asm-generic/link_symbols.h b/include/asm-generic/link_symbols.h
new file mode 100644
index 0000000..2ba185b
--- /dev/null
+++ b/include/asm-generic/link_symbols.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __ASM_GENERIC_LINKSYMBOLS_H
+#define __ASM_GENERIC_LINKSYMBOLS_H
+
+#include <elf.h>
+
+/* Exports from the Linker Script */
+extern uchar __text_start;
+extern uchar _end;
+extern uchar __image_copy_end;
+extern Elf32_Rel __rel_dyn_start[];
+extern Elf32_Rel __rel_dyn_end[];
+extern Elf32_Sym __dynsym_start[];
+extern uchar __bss_start;
+extern uchar __bss_end__;
+extern void _start(void);
+
+#endif
-- 
1.7.3.1



More information about the U-Boot mailing list