bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/25689] New: PDP-11 a.out LMA/VMA addresses incorrect


From: martin at teckelworks dot com
Subject: [Bug binutils/25689] New: PDP-11 a.out LMA/VMA addresses incorrect
Date: Tue, 17 Mar 2020 19:35:13 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25689

            Bug ID: 25689
           Summary: PDP-11 a.out LMA/VMA addresses incorrect
           Product: binutils
           Version: 2.34
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: martin at teckelworks dot com
  Target Milestone: ---

Created attachment 12384
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12384&action=edit
Contains object files and linker script

I’ve come across and issue  in binutils-2.34 that wasn’t there in
binutils-2.33.1 related to the VMA and LMA addresses displayed by objdump when
the text segment is set to start at 0x400 (or anything non-zero). This also
affects addresses shown during disassembly. It looks like the issue may be
related to the recent changes in bdf/pdp11.c

I’ve attached a linker script, two object files and the resulting a.out file
which you can use to reproduce the issue.

# $HOME/bin/pdp11-aout-ld -v
GNU ld (GNU Binutils) 2.33.1

# $HOME/bin/pdp11-aout-ld -Traw a.o crt0.o

# $HOME/bin/pdp11-aout-objdump -v
GNU objdump (GNU Binutils) 2.33.1
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
[root@crosscompile pdp11]# $HOME/bin/pdp11-aout-objdump -x a.out

a.out:     file format a.out-pdp11
a.out
architecture: pdp11, flags 0x000000be:
EXEC_P, HAS_LINENO, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, WP_TEXT
start address 0x0000048e

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000000a6  00000400  00000400  00000010  2**1
                  CONTENTS, ALLOC, LOAD, CODE
  1 .data         0000000e  00000500  00000500  000000b6  2**1
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000000  0000050e  0000050e  00000000  2**1
                  ALLOC
SYMBOL TABLE:
00000400 l       .text 0000 00 02 a.o
00000400 g       .text 0000 00 22 _cons_putchar
00000432 g       .text 0000 00 22 _cons_println
0000045a g       .text 0000 00 22 _main
00000000         *UND* 0000 00 20 ___main
0000048e l       .text 0000 00 02 crt0.o
0000048e g       .text 0000 00 22 _start
000004a4 g       .text 0000 00 22 atexit
000004a6 g       .text 0000 00 22 _etext


# $HOME/bin234/pdp11-aout-objdump -v
GNU objdump (GNU Binutils) 2.34
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

# $HOME/bin234/pdp11-aout-objdump -x a.out

a.out:     file format a.out-pdp11
a.out
architecture: pdp11, flags 0x000000be:
EXEC_P, HAS_LINENO, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, WP_TEXT
start address 0x0000048e

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000000a6  00000000  00000000  00000010  2**1
                  CONTENTS, ALLOC, LOAD, CODE
  1 .data         0000000e  00002000  00002000  000000b6  2**1
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000000  0000200e  0000200e  00000000  2**1
                  ALLOC
SYMBOL TABLE:
00000400 l       .text 0000 00 02 a.o
00000400 g       .text 0000 00 22 _cons_putchar
00000432 g       .text 0000 00 22 _cons_println
0000045a g       .text 0000 00 22 _main
00000000         *UND* 0000 00 20 ___main
0000048e l       .text 0000 00 02 crt0.o
0000048e g       .text 0000 00 22 _start
000004a4 g       .text 0000 00 22 atexit
000004a6 g       .text 0000 00 22 _etext

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]