Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2769)

Issue 154210044: code review 154210044: cmd/ld: correct pe section names if longer then 8 chars (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 6 months ago by brainman
Modified:
9 years, 6 months ago
Reviewers:
gobot, iant, jfrederich
CC:
golang-codereviews, iant, jfrederich
Visibility:
Public.

Description

cmd/ld: correct pe section names if longer then 8 chars gcc 4.9.1 generates pe sections with names longer then 8 charters. From IMAGE_SECTION_HEADER definition: Name An 8-byte, null-padded UTF-8 string. There is no terminating null character if the string is exactly eight characters long. For longer names, this member contains a forward slash (/) followed by an ASCII representation of a decimal number that is an offset into the string table. Our current pe object file reader does not read string table when section names starts with /. Do that, so (issue 8811 example) c:\go\path\src\isssue8811>go build # isssue8811 isssue8811/glfw(.text): isssue8811/glfw(/76): not defined isssue8811/glfw(.text): undefined: isssue8811/glfw(/76) becomes c:\go\path\src\isssue8811>go build # isssue8811 isssue8811/glfw(.text): isssue8811/glfw(.rdata$.refptr._glfwInitialized): not defined isssue8811/glfw(.text): undefined: isssue8811/glfw(.rdata$.refptr._glfwInitialized) Small progress to Update issue 8811

Patch Set 1 #

Patch Set 2 : diff -r 84d418aa033b5e0e4f52b84101b4a5b3cff0aa25 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 84d418aa033b5e0e4f52b84101b4a5b3cff0aa25 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 7b51e20e6835711435a19c304c85cc5d3df07e31 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M src/cmd/ld/ldpe.c View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 6
brainman
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
9 years, 6 months ago (2014-10-09 23:38:52 UTC) #1
iant
LGTM
9 years, 6 months ago (2014-10-10 15:14:01 UTC) #2
jfrederich
On 2014/10/09 23:38:52, brainman wrote: > Hello mailto:golang-codereviews@googlegroups.com, > > I'd like you to review ...
9 years, 6 months ago (2014-10-10 18:22:06 UTC) #3
brainman
On 2014/10/10 18:22:06, jfrederich wrote: > > ... but the same diff section is on ...
9 years, 6 months ago (2014-10-11 10:20:05 UTC) #4
brainman
*** Submitted as https://code.google.com/p/go/source/detail?r=f4cfb7885a65 *** cmd/ld: correct pe section names if longer then 8 chars ...
9 years, 6 months ago (2014-10-11 10:34:18 UTC) #5
gobot
9 years, 6 months ago (2014-10-13 03:30:41 UTC) #6
Message was sent while issue was closed.
This CL appears to have broken the plan9-amd64-aram builder.
See http://build.golang.org/log/f7785d968d1325994b8d3897618e89d6295f0f2c
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b