[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/24701] New: Irix 6.5.30, gcc8.2.0, LD does not output well forme
From: |
daniel.hams at gmail dot com |
Subject: |
[Bug ld/24701] New: Irix 6.5.30, gcc8.2.0, LD does not output well formed executables |
Date: |
Tue, 18 Jun 2019 21:27:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24701
Bug ID: 24701
Summary: Irix 6.5.30, gcc8.2.0, LD does not output well formed
executables
Product: binutils
Version: 2.32
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: daniel.hams at gmail dot com
Target Milestone: ---
I realise this is a bug for a long since discontinued operating system -
apologies for that.
The SGI enthusiast community is in the process of trying to get more modern
tools up and running for these machines - and right now we have a mostly OK
gcc8.2.0 for C when using binutils-2.19.
When using binutils-2.32 - LD doesn't produce valid executables - launching
them in DBX shows the following:
Executable /usr/people/dan/Sources/ldtests/./exe.gcc8.gitld
(dbx) run
Now execute givenfile with the following call:
execvp("/usr/didbs/bin/bash",
"/usr/didbs/bin/bash",
"-c",
"exec ././exe.gcc8.gitld",
(char *)0);
Warning: SymbolTableDwarf: RA register is DW_FRAME_UNDEFINED_VAL in frame 1034,
pc 0xfae43c0
Process 1699 (exe.gcc8.gitld) started
Process 1699 (exe.gcc8.gitld) stopped on signal SIGSEGV: Segmentation
violation (default) at [build_entire_object_list:446 ,0xfb6ff6c]
Source (of /j7/mtibuild/v744/workarea/v7.4.4m/rld/rld_startup.c) not
available for Process 1699
(dbx) where
> 0 build_entire_object_list(0xfbd7c58, 0x2, 0x7ffd7da0, 0x34, 0x0, 0x0, 0x76,
> 0x2) ["/j7/mtibuild/v744/workarea/v7.4.4m/rld/rld_startup.c":446, 0xfb6ff6c]
1 read_aux_vec_and_build_objlist(0x2, 0x10000000, 0x40, 0x34, 0x0, 0x0,
0x76, 0x2) ["/j7/mtibuild/v744/workarea/v7.4.4m/rld/rld_startup.c":1508,
0xfb71104]
2 sgi_main(0x0, 0x7ffd7f54, 0x7ffd7f54, 0x34, 0x0, 0x0, 0x76, 0x2)
["/j7/mtibuild/v744/workarea/v7.4.4m/rld/rld_startup.c":1648, 0xfb71344]
3 newmain() ["/j7/mtibuild/v744/workarea/v7.4.4m/rld/rld_newmain.s":68,
0xfb60184]
(dbx)
Notably - GAS seems fine and using an earlier LD with 2.32 GAS will produce
valid executables.
You can find some built binaries and some readelf dumps of them here:
https://github.com/danielhams/irix-binutils-investigation
The failing executable there is this one:
https://github.com/danielhams/irix-binutils-investigation/blob/master/exe.gcc8.ld232
Kr,
Dan
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/24701] New: Irix 6.5.30, gcc8.2.0, LD does not output well formed executables,
daniel.hams at gmail dot com <=