Commit graph

750 commits

Author SHA1 Message Date
Jakub Jelinek
9ee5e4996f binutils/
* readelf.c (get_segment_type): Handle PT_GNU_STACK.
bfd/
	* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK.
	(bfd_section_from_phdr): Likewise.
	(map_sections_to_segments): Create PT_GNU_STACK segment header.
	(get_program_header_size): Count with PT_GNU_STACK.
	* elf-bfd.h (struct elf_obj_tdata): Add stack_flags.
	* elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags.
include/
	* bfdlink.h (struct bfd_link_info): Add execstack and noexecstack.
	* elf/common.h (PT_GNU_STACK): Define.
ld/
	* ldgram.y (phdr_type): Grok PT_GNU_STACK.
	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
	-z execstack and -z noexecstack.
	(gld${EMULATION_NAME}_list_options): Likewise.
	* scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
2003-06-03 22:27:24 +00:00
Nick Clifton
a3b6428fe7 Return 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY. 2003-06-03 17:45:49 +00:00
Jason Thorpe
92991082e9 * objcopy.c (redefine_list_append): Add an argument that
indicates the context from which this function is being
called.  Change all callers.
(copy_options): Add a new option, --redefine-syms.
(copy_usage): Document new option.
(copy_main): Handle the --redefine-syms option.
* doc/binutils.text (objcopy): Document new option.
2003-06-02 14:45:13 +00:00
Richard Henderson
38fafa6d08 * readelf.c (byte_get_signed): New.
(get_encoded_value): New.
        (display_debug_frames): Use it.  Always pre-process opcodes.
2003-05-31 19:29:19 +00:00
Michal Ludvig
636fc38722 2003-05-20 Michal Ludvig <mludvig@suse.cz>
* readelf.c (display_debug_frames): Print both registers
	for DW_CFA_register.
2003-05-20 14:37:46 +00:00
Nick Clifton
80c7c40aef Replace i[3456]86 with i[3-7]86 2003-05-16 16:30:27 +00:00
Nick Clifton
0fcdcb9188 Treat identical src/dst file names as if only one entered. One Windows
creating an output file of the same name as the input file will delete
the input file before it is read.
2003-05-13 11:15:59 +00:00
Nick Clifton
7ab5f2edf6 Extend test for circualr debug references. 2003-05-12 11:10:24 +00:00
Nick Clifton
3c92310f3e New (simplified) Chinese translation 2003-05-12 11:06:42 +00:00
Jason Eckhardt
d68c07bb74 Update my email address. 2003-05-12 02:14:48 +00:00
H.J. Lu
8beeaeb703 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_relocations): Enlarge the type field in wide
	mode by one character.
2003-05-07 14:30:13 +00:00
Richard Henderson
6304463472 * readelf.c (struct Frame_Chunk): Add cfa_exp.
(frame_display_row): Just print "exp" for cfa or register
        defined by a location expression.
        (display_debug_frames): Handle DW_CFA_def_cfa_expression,
        DW_CFA_expression, DW_CFA_MIPS_advance_loc8.
2003-05-04 00:20:43 +00:00
H.J. Lu
6e50c90cfe 2003-04-30 H.J. Lu <hjl@gnu.org>
* objdump.c (only): Change it to char **.
	(only_size): New.
	(only_used): New.
	(disassemble_data): Check only as an array.
	(dump_data): Likewise.
	(dump_relocs): Likewise.
	(main): Treat only as an array.
2003-05-01 00:40:41 +00:00
Nick Clifton
aaa222e7b0 oops - forgot to add the grep for "(DW_OP_addr: 0)" 2003-04-26 07:57:26 +00:00
Nick Clifton
cbb356d959 Rework readelf -wi tests to grep for expected strings. 2003-04-26 07:53:20 +00:00
Nick Clifton
edbedb7125 Fix the documentation for the -fo option. 2003-04-24 07:58:49 +00:00
Joern Rennecke
ef23021837 bfd:
* archures.c (enum bfd_architecture): Amend comment to refer to SuperH.
        * cpu-sh.c: Likewise.
        * elf32-sh.c: Likewise.
        * reloc.c (bfd_reloc_code_real): Likewise.
        * elf32-sh64-com.c: Change comment to refer to SuperH.
        * elf32-sh64.c: Likewise.
        * elf64-sh64.c: Likewise.
        * bfd-in2.h (enum bfd_architecture): Regenerate.
binutils:
        * readelf.c (get_machine_name) <EM_SH>: Amend return value
        to refer to SuperH.
gas:
        * config/tc-sh.c: Amend comment to refer to SuperH.
        * config/tc-sh.h: Likewise.
        (LISTING_HEADER): Amend to refer to SuperH.
        * config/tc-sh64.c: Change comment to refer to SuperH.
        * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
        * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
        * doc/c-sh.texi: Amend to refer to SuperH.
        Add SuperH architecture documentation references.
        * doc/c-sh64.texi: Change to refer to SuperH.
include/elf:
        * common.h (EM_SH): Amend comment to refer to SuperH.
ld/testsuite:
        * ld-sh/sh64/crange3-cmpct.rd (Machine): Change to refer to SuperH.
        * ld-sh/sh64/crange3-media.rd (Machine): Likewise.
2003-04-23 21:09:04 +00:00
Nick Clifton
3f7de0e75e Fix "readelf -wi" test 2003-04-23 17:36:08 +00:00
Nick Clifton
32df89660f Accept -fo as an alias for -o 2003-04-23 09:00:22 +00:00
Nick Clifton
85eb51104b Rename -I to -J. Deprecate old use of -I, but leave it enabled for now. 2003-04-22 17:31:08 +00:00
Nick Clifton
26597c8633 Replace references to Mitsubishi M32R with references to Renesas M32R. 2003-04-22 16:22:26 +00:00
Nick Clifton
c2dcd04ec8 Replace occurrances of 'Hitachi' with 'Renesas'. 2003-04-15 08:51:55 +00:00
Alexandre Oliva
c1124b23a9 * doc/binutils.texi (objdump) [--debugging]: Suggest readelf -w
for debugging information types not supported by objdump.
2003-04-09 09:55:13 +00:00
Alan Modra
e507634795 * configure.in: Recognize canonical form of i[3-6]86-pe*.
* configure: Regenerate.
2003-04-09 05:14:35 +00:00
Alexandre Oliva
adab8cdcb0 * readelf.c (display_debug_info): Apply RELA relocations on the
entire section.
(byte_put_little_endian, byte_put_big_endian): New functions.
(byte_put): New variable.
(get_file_header): Initialize it.
2003-04-09 04:07:56 +00:00
Nick Clifton
3077f5d8b2 Add -l for compatibility with wrc, and rc. Use the short option as a key for
long options that have a synonymous short option.
2003-04-05 08:21:47 +00:00
Nick Clifton
29b058f1b4 Add -U for compatibility with wrc, rc, and cpp. Just pass the -U option down
to the preprocessor.
2003-04-03 13:40:51 +00:00
Nick Clifton
9a1b6dc5fd Replace "Static" with "classname" so that results match the behaviour of the
Windows' resource compiler.
2003-04-03 10:48:16 +00:00
Christopher Faylor
3126d709ed * windres.c (usage): Report -r option.
(main): Ignore the -r option.
* doc/binutils.texi: Add -r to the list of options.
2003-04-01 23:09:29 +00:00
Bob Wilson
c46ac7116d * MAINTAINERS: Add myself as Xtensa maintainer. 2003-04-01 19:14:27 +00:00
Nick Clifton
88da68203d Add Xtensa port (omitted from previous delta) 2003-04-01 15:53:47 +00:00
Nick Clifton
27a710e55c Change "arm-pe*" to "arm-*-pe*". Similarly for thumb-pe*, mcore-pe and
mcore-*elf.
2003-04-01 10:52:43 +00:00
Alexandre Oliva
335a186916 * objdump.c (dump_data): Don't truncate the address to long; make
the width large enough, and uniform for all entries in a section.
2003-04-01 00:32:47 +00:00
H.J. Lu
566b0d53de 2003-03-31 H.J. Lu <hjl@gnu.org>
* readelf.c: Include "libiberty.h".
	(dynamic_relocations): New.
	(process_relocs): Properly handle dynamic relocation.
	(process_dynamic_segment): Fill relocation elements in
	dynamic_info.
2003-03-31 19:29:45 +00:00
Nick Clifton
ee42cf8cc5 Add some initial 64-bit DWARF support 2003-03-31 13:06:01 +00:00
Nick Clifton
7adbf450a7 Allow resource IDs to be strings or numbers.
Add a test for this.
2003-03-31 10:15:58 +00:00
Nick Clifton
7c29036b75 Add --info command line switch 2003-03-24 16:11:46 +00:00
Nick Clifton
06d86cf78e Move display_info() function into bucomm.c 2003-03-24 11:28:35 +00:00
Danny Smith
2630b4ca5f * dlltool.c (gen_def_file): Put demangled name comments on
own line preceding export name.
2003-03-22 21:04:50 +00:00
Nick Clifton
98a91d6ae2 (disassemble_data): Use disasm_info.fprintf_func not printf for emitting new
lines.
2003-03-17 11:16:51 +00:00
Nick Clifton
06a30c77e0 nm.c (print_symbol_info_bsd): Print the symbol's size instead of the symbol's
value when --size-sort is used, unless -S is used.
doc/binutils.texi (--size-sort): For non-bsd formats both the value and size
of the symbols are displayed.
2003-03-17 10:14:07 +00:00
Nick Clifton
ab829d36ec Updated translation 2003-03-13 15:12:05 +00:00
Nick Clifton
634847c95c Update. 2003-03-13 09:11:16 +00:00
Ben Elliston
3889f9ebd7 2003-03-10 Ben Elliston <bje@wasabisystems.com>
* MAINTAINERS: Update my mail address.
2003-03-09 22:52:02 +00:00
Nick Clifton
7eb5191ac3 Remove redundant defintions of BYTES_IN_WORD and add conditional defintion in
aout64.h.
2003-03-06 16:45:42 +00:00
Nick Clifton
e3b83c8f4d (print_symbol): Remove check for undefined_only.
(main): Print a warning message if --size-sort and --undefined-only are used
together.
2003-03-04 16:23:46 +00:00
Nick Clifton
a9d68a1ea5 Installed latest Danish translation. 2003-03-03 10:08:02 +00:00
Nick Clifton
a99996bbb4 Add paragraph about using --disable-nls 2003-02-24 16:37:13 +00:00
Nick Clifton
76ed1927d5 (nm --size-sort): Update description. 2003-02-24 16:20:28 +00:00
Jim Wilson
0100f33bcd Update my address. 2003-02-22 00:16:29 +00:00