]> git.saurik.com Git - apple/ld64.git/blame - ChangeLog
ld64-85.tar.gz
[apple/ld64.git] / ChangeLog
CommitLineData
d696c285 1
77cc3118
A
2----- Tagged ld64-85
3
42008-04-29 Nick Kledzik <kledzik@apple.com>
5
6 * ld64.xcodeproj/project.pbxproj: <llvm-c/lto.h> is moving from /usr/local/include to /Developer/usr/local/include
7
8
92008-04-29 Nick Kledzik <kledzik@apple.com>
10
11 <rdar://problem/5829579> ld doesn't honor "rightmost" -syslibroot argument
12 * src/Options.cpp: if last -syslibroot is /, then ignore all syslibroots
13
14
152008-04-29 Nick Kledzik <kledzik@apple.com>
16
17 <rdar://problem/5866582> GLRendererFloat has bad __eh_frame section caused by mixing llvm-gcc and gcc object files
18 * src/MachOReaderRelocatable.hpp: make all atoms in __eh_frame section have 1-byte alignment
19 * src/MachOWriterExecutable.hpp: make __eh_frame section have pointer sized alignment
20
21
222008-04-17 Nick Kledzik <kledzik@apple.com>
23
24 * src/MachOReaderRelocatable.hpp: better cpu subtype support
25
26
272008-04-14 Nick Kledzik <kledzik@apple.com>
28
29 <rdar://problem/5733759> ld64 has bad ARM branch island check
30 * src/MachOWriterExecutable.hpp: in addBranchIslands() don't force large arm programs to fail
31
32
332008-04-10 Nick Kledzik <kledzik@apple.com>
34
35 * src/MachOWriterExecutable.hpp: fix stubs used with lazy dylibs
36
37
38----- Tagged ld64-84.4
39
402008-04-10 Nick Kledzik <kledzik@apple.com>
41
42 <rdar://problem/5847206> SPEC2000/eon built with -mdynamic-no-pic won't run
43 * src/Architectures.hpp: added arm::kReadOnlyPointer
44 * src/MachOReaderRelocatable.hpp: generate arm::kReadOnlyPointer
45 * src/MachOWriterExecutable.hpp: use arm::kReadOnlyPointer
46 * src/machochecker.cpp: allow MH_PIE bit
47 * unit-tests/test-cases/switch-jump-table: added test cases
48
49
50----- Tagged ld64-84.3
183622f6 51
2f2f92e4 522008-04-09 Nick Kledzik <kledzik@apple.com>
a61fdf0a 53
2f2f92e4
A
54 <rdar://problem/5852023> -undefined dynamic_lookup busted
55 * src/ld.cpp: don't create proxy atom when scanning for dylib duplicates
56 * unit-tests/test-cases/tentative-and-archive: use -undefined dynamic_lookup
a61fdf0a 57
77cc3118
A
58
59----- Tagged ld64-84.2
60
612008-04-04 Nick Kledzik <kledzik@apple.com>
62
63 * src/ld.cpp: don't add .eh symbols to symbol table in -r mode
64 * unit-tests/test-cases/eh-coalescing-r: update to test out of order coalescing
65
66
2f2f92e4 67----- Tagged ld64-84.1
a61fdf0a 68
2f2f92e4 692008-03-28 Nick Kledzik <kledzik@apple.com>
a61fdf0a 70
2f2f92e4
A
71 <rdar://problem/5720961> ld should prefer architecture-specific variant over generic in fat object file
72 * src/Options.cpp: fully process -arch arguments into fArchitecture and fSubArchitecture
73 * src/ld.cpp: when -arch with a subtype is used, try to find the exact subtype from fat files
74 * unit-tests/test-cases/cpu-sub-types-preference: added test cases for arm and ppc
75
a61fdf0a 76
2f2f92e4 77----- Tagged ld64-84
a61fdf0a 78
2f2f92e4 792008-03-28 Nick Kledzik <kledzik@apple.com>
a61fdf0a 80
2f2f92e4 81 * src/LTOReader.hpp: don't print lto version, if lto is unavailable
a61fdf0a
A
82
83
2f2f92e4 842008-03-26 Nick Kledzik <kledzik@apple.com>
a61fdf0a 85
2f2f92e4
A
86 <rdar://problem/5575399> Add LD_WARN_COMMONS to BigBear builds
87 * src/Options.cpp: Add support for LD_WARN_FILE which copies all warnings to a side file
a61fdf0a
A
88
89
2f2f92e4 902008-03-26 Nick Kledzik <kledzik@apple.com>
a61fdf0a 91
2f2f92e4
A
92 <rdar://problem/5797713> Need encryption tag in mach-o file
93 <rdar://problem/5811920> linker should adjust arm final linked images so __text is never on the same page as the load commands
94 * src/MachOFileAbstraction.hpp: add support for encryption_info_command
95 * src/Options.cpp: add support for LD_NO_ENCRYPT and -no_encryption
96 * src/MachOWriterExecutable.hpp: add EncryptionLoadCommandsAtom
97 * src/machochecker.cpp: validate LC_ENCRYPTION_INFO
a61fdf0a
A
98
99
2f2f92e4 1002008-03-25 Nick Kledzik <kledzik@apple.com>
a61fdf0a 101
2f2f92e4
A
102 <rdar://problem/5712533> ld64 does not recognize LLVM bitcode archive files
103 * src/MachOReaderArchive.hpp: renamed to src/ArchiveReader.hpp
104 * src/ArchiveReader.hpp: sniff each member and instantiate correct reader
105 * src/ld.cpp: rename mach_o::archive::Reader to archive::Reader
106 * ld64.xcodeproj/project.pbxproj: rename MachOReaderArchive.hpp to ArchiveReader.hpp
107 * unit-tests/test-cases/llvm-integration: added test case
a61fdf0a
A
108
109
2f2f92e4 1102008-03-25 Nick Kledzik <kledzik@apple.com>
a61fdf0a 111
2f2f92e4
A
112 <rdar://problem/5771658> ld64 should switch to new libLTO.dylib interface
113 <rdar://problem/5675690> Produce llvm bc file in 'ld -r' mode if all .o files are llvm bc
114 * src/LTOReader.hpp: rewrite from LLVMReader.hpp to use new lto_* C interface
115 * unit-tests/test-cases/llvm-integration: update and comment
116 * ld64.xcodeproj/project.pbxproj: update to lazy load libLTO.dylib
117 * src/ld.cpp: rework and simplify Linker::optimize()
118 * src/ObjectDump.cpp: Add -nm option
a61fdf0a
A
119
120
2f2f92e4 1212008-03-25 Nick Kledzik <kledzik@apple.com>
a61fdf0a 122
2f2f92e4
A
123 * src/MachOReaderRelocatable.cpp: Fix some .objc_class_name_ off by one problem
124 * src/MachOWriterExecutable.cpp: Fix some .objc_class_name_ off by one problem
a61fdf0a 125
a61fdf0a 126
2f2f92e4 1272008-03-24 Nick Kledzik <kledzik@apple.com>
a61fdf0a 128
2f2f92e4
A
129 <rdar://problem/5814613> Xcode 3.1 breaks linkage of libgcj.9.dylib from gcc 4.3.0
130 * src/MachOWriterExecutable.cpp: Make sure all ivars in Writer are initialized.
a61fdf0a 131
a61fdf0a 132
2f2f92e4 1332008-03-21 Nick Kledzik <kledzik@apple.com>
a61fdf0a 134
2f2f92e4 135 * src/Options.cpp: warn if -seg1addr value is not page aligned
a61fdf0a
A
136
137
2f2f92e4 1382008-03-21 Nick Kledzik <kledzik@apple.com>
a61fdf0a 139
2f2f92e4
A
140 <rdar://problem/5806437> Move ARM support outside of __OPEN_SOURCE__
141 * src/ld.cpp: remove __OPEN_SOURCE__ around arm support
142 * src/LLVMReader.hpp: remove __OPEN_SOURCE__ around arm support
143 * src/MachOReaderDylib.hpp: remove __OPEN_SOURCE__ around arm support
144 * src/ObjectFile.h: remove __OPEN_SOURCE__ around arm support
145 * src/MachOReaderRelocatable.hpp: remove __OPEN_SOURCE__ around arm support
146 * src/OpaqueSection.hpp: Cover arm support inside __OPEN_SOURCE__ macro check
147 * src/MachOWriterExecutable.hpp: remove __OPEN_SOURCE__ around arm support
148 * src/ObjectDump.cpp: remove __OPEN_SOURCE__ around arm support
149 * ld64.xcodeproj/project.pbxproj: remove ARM_SUPPORT from config.h
a61fdf0a
A
150
151
2f2f92e4 152----- Tagged ld64-83.2
a61fdf0a 153
2f2f92e4 1542008-03-15 Nick Kledzik <kledzik@apple.com>
a61fdf0a 155
2f2f92e4
A
156 <rdar://problem/5801620> ld64-83 removes OBJC_CLASS_$ symbols from projects, causes catastrophic results
157 * src/Options.cpp: restore "case CPU_TYPE_ARM" in switch statement for .objc_class symbols in .exp files
158 * unit-tests/test-cases/objc-exported_symbols_list: added test case
a61fdf0a 159
a61fdf0a 160
2f2f92e4 161----- Tagged ld64-83.1
a61fdf0a 162
2f2f92e4 1632008-03-14 Nick Kledzik <kledzik@apple.com>
a61fdf0a 164
2f2f92e4
A
165 <rdar://problem/5800466> -iphone_version_min ==> -iphoneos_version_min
166 * src/Options.cpp: support -iphoneos_version_min as well
a61fdf0a
A
167
168
2f2f92e4 169----- Tagged ld64-83
a61fdf0a 170
2f2f92e4 1712008-03-10 Nick Kledzik <kledzik@apple.com>
a61fdf0a 172
2f2f92e4
A
173 <rdar://problem/5791543> ld needs to strip iphone_version_min option if invoking ld_classic
174 * src/Options.cpp: suppress -iphone_version_min from being passed to ld_classic
a61fdf0a 175
a61fdf0a 176
2f2f92e4 1772008-03-04 Nick Kledzik <kledzik@apple.com>
a61fdf0a 178
2f2f92e4
A
179 <rdar://problem/4171253> ADOBE XCODE: Linker option to lazy load frameworks (cause dyld is too slow)
180 * src/MachOWriterExecutable.hpp: create lazy stubs and LC_LAZY_LOAD_DYLIB for lazy load dylibs
181 * src/Options.cpp: support -lazy-l, -lazy_library, and -lazy_framework
182 * src/MachOFileAbstraction.hpp: add LC_LAZY_LOAD_DYLIB and S_LAZY_DYLIB_SYMBOL_POINTERS until in cctools
183 * src/MachOReaderDylib.hpp: add isLazyLoadedDylib()
184 * src/ld.cpp: pass lazy helper atom to writer
185 * doc/man/man1/ld.1: document new options
186 * unit-tests/test-cases/lazy-dylib-objc: add test case
187 * unit-tests/test-cases/lazy-dylib: add test case
a61fdf0a
A
188
189
2f2f92e4 190----- Tagged ld64-82.7
a61fdf0a 191
2f2f92e4 1922008-03-07 Nick Kledzik <kledzik@apple.com>
a61fdf0a 193
2f2f92e4
A
194 <rdar://problem/5787149> duplicate symbol literal-pointer@__OBJC@__message_refs@...
195 * src/MachOReaderRelocatable.hpp: AnonymousAtom from S_LITERAL_POINTERS section should be weak
196 * unit-tests/test-cases/objc-selector-coalescing: added test case
a61fdf0a 197
a61fdf0a 198
2f2f92e4 199----- Tagged ld64-82.6
a61fdf0a 200
2f2f92e4 2012008-03-04 Nick Kledzik <kledzik@apple.com>
a61fdf0a 202
2f2f92e4
A
203 <rdar://problem/5779681> ld crashes building XsanFS for Snow Leopard Builds
204 * src/ld.cpp: add bool dylibsOnly parameter to addJustInTimeAtoms()
205 * unit-tests/test-cases/tentative-and-archive: added test case
a61fdf0a 206
2f2f92e4 2072008-03-04 Nick Kledzik <kledzik@apple.com>
a61fdf0a 208
2f2f92e4
A
209 <rdar://problem/5775822> ld64 should not force building with gcc 4.0
210 * ld64.xcodeproj/project.pbxproj: change rules to use "system" compiler instead of 4.0
a61fdf0a
A
211
212
2f2f92e4 2132008-02-29 Nick Kledzik <kledzik@apple.com>
a61fdf0a 214
2f2f92e4
A
215 <rdar://problem/5774730> Simulator frameworks are being build split-seg and not prebound
216 * src/Options.cpp: only splitseg if prebound
a61fdf0a
A
217
218
2f2f92e4 2192008-02-29 Nick Kledzik <kledzik@apple.com>
a61fdf0a 220
2f2f92e4
A
221 <rdar://problem/5774231> Linker should not make GSYM debug note for .objc_category_* symbols
222 * src/ld.cpp: suppress GSYM debug notes for absolute symbols
223 * unit-tests/test-cases/objc-category-debug-notes: added test case
a61fdf0a 224
a61fdf0a 225
2f2f92e4 2262008-02-29 Nick Kledzik <kledzik@apple.com>
a61fdf0a 227
2f2f92e4
A
228 <rdar://problem/5768970> non-ASCII CFString support is broken
229 * src/MachOReaderRelocatable.hpp: only name and coalesce cfstring constants if they use a __cstring
230 * unit-tests/test-cases/cfstring-utf16: add test case
a61fdf0a 231
a61fdf0a 232
2f2f92e4 2332008-02-25 Nick Kledzik <kledzik@apple.com>
a61fdf0a 234
2f2f92e4
A
235 <rdar://problem/5366363> ld -r -x
236 * doc/man/man1/ld.1: update man page to explain -r -x produces auto-stripped labels
a61fdf0a 237
a61fdf0a 238
2f2f92e4 239----- Tagged ld64-82.5
a61fdf0a 240
2f2f92e4 2412008-02-12 Nick Kledzik <kledzik@apple.com>
a61fdf0a 242
2f2f92e4
A
243 <rdar://problem/5738023> x86_64: -stack_size failure when large __bss is used
244 * src/ld.cpp: only move section already in __DATA segment to new __huge section
245 * unit-tests/test-cases/stack_size_no_addr: updated test case to add large bss section
a61fdf0a
A
246
247
2f2f92e4 248----- Tagged ld64-82.4
a61fdf0a 249
2f2f92e4 2502008-02-06 Nick Kledzik <kledzik@apple.com>
a61fdf0a 251
2f2f92e4
A
252 <rdar://problem/5726215> comdat warnings with ld -r of C++ .o files
253 * unit-tests/test-cases/eh-coalescing-r: added test case
254 * src/ld.cpp: in ld -r mode don't warn about if .eh symbols are not static
a61fdf0a
A
255
256
2f2f92e4 2572008-02-06 Devang Patel <dpatel@apple.com>
a61fdf0a 258
2f2f92e4
A
259 <rdar://problem/5724990> LTO of Bom framework with -dead_strip causes ld(1) crash
260 * src/LLVMReader.hpp: Check fAtom while determining LLVMReference target binding.
261 * unit-tests/test-cases/llvm-integration/Makefile: Add new test case.
262 * unit-tests/test-cases/llvm-integration/a15.c: New.
263 * unit-tests/test-cases/llvm-integration/b15.c: New.
264 * unit-tests/test-cases/llvm-integration/c15.c: New.
a61fdf0a 265
2f2f92e4 2662008-02-05 Nick Kledzik <kledzik@apple.com>
a61fdf0a 267
2f2f92e4 268 * src/ld.cpp: fix for -arch ppc -mdynamic-no-pic -pie so PPC_RELOC_HA16 reloc is used
a61fdf0a 269
2f2f92e4 270----- Tagged ld64-82.3
a61fdf0a 271
2f2f92e4 2722008-02-04 Nick Kledzik <kledzik@apple.com>
a61fdf0a 273
2f2f92e4
A
274 <rdar://problem/5721186> ld doesn't seem to understand $ld$add$os... and $ld$hide$os... for 10.6 moves
275 * src/ObjectFile.h: add 10.6
276 * src/Options.cpp: add 10.6 support
277 * src/MachOReaderDylib.hpp: recognize $os10.6$
a61fdf0a
A
278
279
2f2f92e4 280----- Tagged ld64-82.2
a61fdf0a 281
2f2f92e4 2822008-01-30 Devang Patel <dpatel@apple.com>
a61fdf0a 283
2f2f92e4
A
284 <rdar://problem/5714833> Can't build 64-bit Intel binaries with LTO
285 <rdar://problem/5714787> ld64 fails to build with llvm-gcc-4.2
286 * src/LLVMReader.hpp: Fix character count typo in strncmp call.
287 Use const char * to initialize temp. string.
288 * ld64.xcodeproj/project.pbxproj: use $(DEVELOPER_DIR) in header search construction
289 instead of hard coding /Developer.
a61fdf0a 290
2f2f92e4 291----- Tagged ld64-82.1
a61fdf0a 292
2f2f92e4 2932008-01-23 Nick Kledzik <kledzik@apple.com>
a61fdf0a 294
2f2f92e4 295 * src/MachOReaderRelocatable.hpp: don't bus error if S_LITERAL_POINTERS is missing relocs
a61fdf0a 296
a61fdf0a 297
2f2f92e4 2982008-01-22 Nick Kledzik <kledzik@apple.com>
a61fdf0a 299
2f2f92e4
A
300 <rdar://problem/5695496> ld uses 32-bits in some places to hold addresses when parsing 64-bit mach-o files
301 * src/MachOReaderRelocatable.hpp: use AddrToAtomMap type that switch address to 64-bits for 64-bit archs
302 * src/MachOWriterExecutable.hpp: verify BR14 does not overflow for external relocs
303 * unit-tests/test-cases/relocs-c: update test case to slide addresses to verify x86_64 .o files
a61fdf0a 304
a61fdf0a 305
2f2f92e4 306----- Tagged ld64-82
a61fdf0a 307
2f2f92e4 3082008-01-18 Nick Kledzik <kledzik@apple.com>
a61fdf0a 309
2f2f92e4
A
310 <rdar://problem/5694612> Bad grammar used in ld warning: cannot exported hidden symbol
311 * src/ld.cpp: fix typo in warning string
a61fdf0a
A
312
313
2f2f92e4 3142008-01-16 Nick Kledzik <kledzik@apple.com>
a61fdf0a 315
2f2f92e4
A
316 <rdar://problem/5565074> Bundle Loader does not work anymore when loader is a bundle
317 <rdar://problem/5590203> ld warns of incorrect architecture when linking a bundle to a bundle
318 * src/MachOReaderDylib.hpp: support linking against bundles via -bundle_loader. Clean up error messages
319 * unit-tests/test-cases/bundle_loader: update test case
320
a61fdf0a 321
2f2f92e4 3222008-01-16 Nick Kledzik <kledzik@apple.com>
a61fdf0a 323
2f2f92e4
A
324 <rdar://problem/5366363> ld -r -x creates debug notes (stabs) when it should not with -x (keep only global symbols)
325 * src/Options.cpp: in reconfigureDefaults() if -r and -x then -S
a61fdf0a
A
326
327
2f2f92e4 3282008-01-16 Nick Kledzik <kledzik@apple.com>
a61fdf0a 329
2f2f92e4
A
330 <rdar://problem/5566068> if ld crashes while writing output file, it should delete the half written file
331 * src/MachOWriterExecutable.hpp: wrap open/write/close in try block and add signal handlers all to delete
332 output file on failure.
a61fdf0a
A
333
334
2f2f92e4 3352008-01-16 Devang Patel <dpatel@apple.com>
a61fdf0a 336
2f2f92e4 337 * src/LLVMReader.hpp: Use __gnu_cxx::hash_map instead of hash supported by LLVM.
a61fdf0a
A
338
339
2f2f92e4 3402008-01-16 Nick Kledzik <kledzik@apple.com>
a61fdf0a 341
2f2f92e4
A
342 <rdar://problem/5593537> GC-supported library can't be linked into GC-required executable
343 * src/ld.cpp: loosen constraint that all objc code must be compiled with same GC settings and
344 allow gc-compatible code to be linked into anything.
345 * unit-tests/test-cases/objc-gc-checks: update test case
a61fdf0a
A
346
347
2f2f92e4 3482008-01-15 Nick Kledzik <kledzik@apple.com>
a61fdf0a 349
2f2f92e4
A
350 <rdar://problem/5687976> no debug notes for custom named data
351 * src/ld.cpp: in synthesizeDebugNotes() check getSymbolTableInclusion() instead of for leading underscore
352 * unit-tests/test-cases/dwarf-debug-notes: update test case
a61fdf0a 353
2f2f92e4 354----- Tagged ld64-81.5
a61fdf0a 355
2f2f92e4 3562008-01-14 Devang Patel <dpatel@apple.com>
a61fdf0a 357
2f2f92e4
A
358 <rdar://problem/5683813> llvm-gcc-4.2 fails to build Sqlite 3.5.4 with -O4
359 * src/LLVMReader.hpp: Resolve proxy references. Collect new unbounded references
360 after optimization.
361 * src/ld.cpp: Resolve additional unbounded references after optimization.
a61fdf0a
A
362
363
2f2f92e4 3642008-01-14 Nick Kledzik <kledzik@apple.com>
a61fdf0a 365
2f2f92e4
A
366 <rdar://problem/5655246> PPC Leopard (Xcode 3.0) linker ld gets "Bus error" sometimes
367 * src/MachOReaderRelocatable.hpp: use same code as x86 to parse ppc and arm sect-diff relocs
368 * src/MachOWriterExecutable.hpp: use same code as x86 to write ppc and arm sect-diff relocs
a61fdf0a
A
369
370
2f2f92e4 3712008-01-11 Nick Kledzik <kledzik@apple.com>
a61fdf0a 372
2f2f92e4
A
373 <rdar://problem/5637618> PPC Leopard (Xcode 3.0) linker ld reports "unknown scattered relocation type 4"
374 * src/MachOReaderRelocatable.hpp: add PPC_RELOC_HI16 to scattered reloc parsing
375 * unit-tests/test-cases/relocs-asm/relocs-asm.s: added tests for scattered hi/lo instructions
a61fdf0a 376
a61fdf0a 377
2f2f92e4 3782008-01-11 Nick Kledzik <kledzik@apple.com>
a61fdf0a 379
2f2f92e4 380 * doc/man/man1/ld.1: add doc for -no_implicit_dylibs, -read_only_stubs, -slow_stubs, -interposable_list
a61fdf0a 381
a61fdf0a 382
2f2f92e4 3832008-01-11 Nick Kledzik <kledzik@apple.com>
a61fdf0a 384
2f2f92e4
A
385 <rdar://problem/4800212> ld64(1) man page uses ambiguous term "suffix"
386 * doc/man/man1/ld.1: make meaning of "suffix" more explicit
a61fdf0a
A
387
388
2f2f92e4 3892008-01-11 Nick Kledzik <kledzik@apple.com>
a61fdf0a 390
2f2f92e4
A
391 <rdar://problem/5633081> Obj-C Symbols in Leopard Can't Be Weak Linked
392 * src/MachOWriterExecutable.hpp: set weak and lazy attributes on dummy .objc_class_name undefines
393 to dylibs to support Mac OS X 10.3.x dyld
394
a61fdf0a 395
2f2f92e4 3962008-01-11 Nick Kledzik <kledzik@apple.com>
a61fdf0a 397
2f2f92e4
A
398 <rdar://problem/5669751> Unknown error with linker (dyld: unknown external relocation type)
399 * src/ld.cpp: fix crash when SO stabs are not balanced
a61fdf0a
A
400
401
2f2f92e4 4022008-01-11 Devang Patel <dpatel@apple.com>
a61fdf0a 403
2f2f92e4
A
404 <rdar://problem/5667433> LTO does not work if expected output is a dynamic library
405 * src/LLVMReader.hpp: Supply arguments describing output kind to optimizer. Communicate
406 visibility info.
a61fdf0a 407
2f2f92e4 4082000-01-10 Nick Kledzik <kledzik@apple.com>
a61fdf0a 409
2f2f92e4
A
410 <rdar://problem/5680988> __cls_refs section is losing S_LITERAL_POINTERS section type
411 * src/MachOWriterExecutable.hpp: special case __cls_refs section
412 * unit-tests/test-cases/objc-literal-pointers: add test case
a61fdf0a
A
413
414
2f2f92e4 4152008-01-03 Nick Kledzik <kledzik@apple.com>
a61fdf0a 416
2f2f92e4
A
417 <rdar://problem/5667688> wrong EH information might be used
418 Created new kGroupSubordinate reference kind to model group comdat. The "signature" atom
419 has kGroupSubordinate references to the other atoms in the group. If the signature atom
420 is coalesced away, the linker follows kGroupSubordinate references and throws away the
421 other members of the group.
422 * unit-tests/test-cases/eh-coalescing: added test case
423 * src/ld.cpp: added markDead() and use propagate to subordinates
424 * src/Architectures.hpp: added kGroupSubordinate
425 * src/MachOReaderRelocatable.hpp: add kGroupSubordinate reference from a function to its .eh atom
426 and if used, from .eh atom to its LSDA atom.
427 * src/MachOWriterExecutable.hpp: handle kGroupSubordinate like kNoFixUp
a61fdf0a 428
2f2f92e4 429----- Tagged ld64-81.4.1
a61fdf0a 430
2f2f92e4 4312007-12-19 Devang Patel <dpatel@apple.com>
a61fdf0a 432
2f2f92e4 433 * src/LLVMReader.hpp: Add LLVM_LTO_VERSION #ifdef check.
a61fdf0a 434
2f2f92e4 4352007-12-19 Devang Patel <dpatel@apple.com>
a61fdf0a 436
2f2f92e4 437 * src/LLVMReader.hpp: Add fOptimizer NULL check before calling printVersion().
a61fdf0a 438
2f2f92e4 4392007-12-19 Devang Patel <dpatel@apple.com>
a61fdf0a 440
2f2f92e4
A
441 <rdar://problem/5655956> print LLVM LTO version number in verbose mode
442 * src/LLVMReader.hpp: Add printLLVMVersion() to print llvm version string in verbose mode.
443 * src/Options.cpp: Use printLLVMVersion() in verbose mode.
a61fdf0a 444
2f2f92e4 4452007-12-19 Devang Patel <dpatel@apple.com>
a61fdf0a 446
2f2f92e4
A
447 <rdar://problem/5655956> print LLVM LTO version number in verbose mode
448 * src/Options.h: Add verbose() method to check fVerbose flag.
449 * src/LLVMReader.hpp: Print LLVM version string in verbose mode.
a61fdf0a 450
2f2f92e4 451----- Tagged ld64-81.4
a61fdf0a 452
2f2f92e4 4532007-12-18 Devang Patel <dpatel@apple.com>
a61fdf0a 454
2f2f92e4 455 * src/LLVMReader.hpp: Invalidate input architecture when optimizer is not available.
a61fdf0a 456
2f2f92e4 457----- Tagged ld64-81.3
a61fdf0a 458
2f2f92e4 4592007-12-17 Nick Kledzik <kledzik@apple.com>
a61fdf0a 460
2f2f92e4
A
461 * ld64.xcodeproj/project.pbxproj: remove extraneous header search paths
462
a61fdf0a 463
2f2f92e4 4642007-12-17 Devang Patel <dpatel@apple.com>
a61fdf0a 465
2f2f92e4
A
466 * src/LLVMReader.hpp: Do not throw exception if LLVMReader is not able to
467 dlopen LTO library. Instead just flag input file as an invalid LLVM bitcode file.
a61fdf0a 468
a61fdf0a 469
2f2f92e4 4702007-12-14 Nick Kledzik <kledzik@apple.com>
a61fdf0a 471
2f2f92e4
A
472 <rdar://problem/5645908> gcc DejaGnu failure: gcc.dg/20020312-2.c (test for excess errors) (-fstack-protector-all)
473 * src/MachOWriterExecutable.hpp: fix Writer<x86>::generatesExternalTextReloc() to allow text relocs
474 * unit-tests/test-cases/read-only-relocs: updated test case to link a dynamic main executable compiled with -static
a61fdf0a
A
475
476
2f2f92e4 4772007-12-14 Devang Patel <dpatel@apple.com>
a61fdf0a 478
2f2f92e4
A
479 <rdar://problem/5648438> Enable Link Time Optimization in Opal
480 * src/LLVMReader.hpp: Locate LLVMlto.dylib relative to ld location in Developer folder.
481 * ld64.xcodeproj/project.pbxproj: Add {DEVELOPER_DIR}/usr/include in header search path.
482 * unit-tests/run-all-unit-tests: Set DYLD_FALLBACK_LIBRARY_PATH to find LLVMlto.dylib during unit testing.
483 * unit-tests/testcases/llvm-integration/Makefile: Point LLVMGCC and LLVMGXX to llvm-gcc-4.2 in Developer folder during unit testing.
484
485
4862007-12-13 Nick Kledzik <kledzik@apple.com>
a61fdf0a 487
2f2f92e4
A
488 <rdar://problem/5645446> SWB: failures due to ld: pointer in read-only segment not allowed in slidable image, used in ...
489 * src/MachOReaderRelocatable.hpp: in Reader<x86>::addRelocReference() handle weak pc-rel 32-bit vanilla relocs properly
490
491----- Tagged ld64-81.2
86b84c30 492