llvm-project/llvm
James Henderson abd335a339 [llvm-objdump] Fix unstable disassembly output for sections with same address
When two sections shared the same address, the disassembly code was
using pointer values when sorting (see the SectionRef less than
operator). Since those values aren't guaranteed to have a specific
order, this meant the disassembly code would sometimes change which
section to pick when finding symbols targeted by calls in fully linked
objects.

This change fixes the non-determinism, so that the same section is
always picked. This might have a negative impact in that now a section
without any symbol might be picked over a section with symbols, but this
will be addressed in a later commit.

Fixes https://bugs.llvm.org/show_bug.cgi?id=45411.

Reviewed by: grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D77640
2020-04-08 10:57:12 +01:00
..
benchmarks
bindings
cmake Make paths in generated llvm-lit relative as well. 2020-04-06 09:18:23 -04:00
docs [docs] Add the release notes about Debug Entry Values 2020-04-07 12:08:22 +02:00
examples [NFC] Clean up uses of LoadInst constructor. 2020-04-07 16:28:53 -07:00
include [GlobalISel] Combine sext([sz]ext) -> [sz]ext, zext(zext) -> zext 2020-04-08 11:24:29 +02:00
lib [GlobalISel] support narrow G_IMPLICIT_DEF for DstSize % NarrowSize != 0 2020-04-08 11:00:07 +02:00
projects
resources
runtimes
test [llvm-objdump] Fix unstable disassembly output for sections with same address 2020-04-08 10:57:12 +01:00
tools [llvm-objdump] Fix unstable disassembly output for sections with same address 2020-04-08 10:57:12 +01:00
unittests [GlobalISel] support narrow G_IMPLICIT_DEF for DstSize % NarrowSize != 0 2020-04-08 11:00:07 +02:00
utils [lit] Print slowest tests and time histogram before result groups 2020-04-07 22:19:50 -07:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [cmake] Fix -stripped for umbrella library install targets 2020-03-20 18:46:48 -07:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Test commit. 2020-03-14 18:08:26 -07:00
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.