ChangeLog-2004 201 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069
  1. 2004-12-31 Paul Brook <paul@copdesourcery.com>
  2. * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
  3. 2004-12-31 Alan Modra <amodra@bigpond.net.au>
  4. * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW):
  5. Commit missing changes from 2004-12-22.
  6. * bfd-in2.h: Regenerate.
  7. 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
  8. * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
  9. 2004-12-21 Kris Warkentin <kewarken@qnx.com>
  10. * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
  11. Add 'base' argument for constructing register sections. Reformat.
  12. (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
  13. gp and fp regs. Reformat.
  14. 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
  15. * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW.
  16. * bfd-in2.h: Regenerate.
  17. * elf32-avr.c (elf_avr_nowto_table): Add the new relocs.
  18. (avr_reloc_map): Likewise.
  19. (avr_final_link_relocate): Likewise.
  20. 2004-12-22 Alan Modra <amodra@bigpond.net.au>
  21. * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
  22. as-needed dynamic libs as undefined.
  23. (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
  24. libs when finding they are needed.
  25. 2004-12-20 Alan Modra <amodra@bigpond.net.au>
  26. * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
  27. (opd_entry_value): Use opd_relocs if available.
  28. (ppc64_elf_relocate_section): Don't set reloc_done. Instead
  29. copy .opd relocations to opd_relocs.
  30. (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
  31. 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
  32. * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
  33. * elf32-v850.c (v850_elf_howto_table): Add entry for
  34. R_V850_LO16_SPLIT_OFFSET.
  35. (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
  36. (v850_elf_perform_lo16_relocation): New function, extracted from...
  37. (v850_elf_perform_relocation): ...here. Use it to handle
  38. R_V850_LO16_SPLIT_OFFSET.
  39. (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
  40. R_V850_LO16_SPLIT_OFFSET.
  41. * libbfd.h, bfd-in2.h: Regenerate.
  42. 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
  43. * config.bfd: Add s390x-ibm-tpf support.
  44. 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
  45. * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
  46. to prototype, to make hash info available.
  47. Prevent wrapped symbols from being adjusted twice.
  48. 2004-12-14 Richard Sandiford <rsandifo@redhat.com>
  49. * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
  50. overflow for calls to undefined weak symbols.
  51. 2004-12-11 Alan Modra <amodra@bigpond.net.au>
  52. * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
  53. canonical sections syms have a name.
  54. 2004-12-11 Alan Modra <amodra@bigpond.net.au>
  55. * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
  56. have been adjusted for output.
  57. (ppc64_elf_relocate_section): Mark sections with reloc_done.
  58. 2004-12-10 Alan Modra <amodra@bigpond.net.au>
  59. * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
  60. add symtab_hdr param.
  61. (group_signature): Update calls.
  62. * elf-bfd.h (bfd_elf_sym_name): Update.
  63. * elf32-ppc.c (ppc_elf_relocate_section): Update.
  64. * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
  65. (ppc64_elf_relocate_section): Update.
  66. * elflink.c (elf_link_input_bfd): Update.
  67. 2004-12-10 Jakub Jelinek <jakub@redhat.com>
  68. * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
  69. st_shndx on STT_SECTION sections.
  70. 2004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
  71. * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
  72. ELF section symbols.
  73. 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
  74. * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
  75. return a real value, unless it is a PLT symbol.
  76. (mips_elf_perform_relocation): On the RM9000, turn a jal into a
  77. bal if possible.
  78. * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
  79. R_MIPS_JALR entry to 0.
  80. * archures.c: Define bfd_mach_mips9000.
  81. * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
  82. (mips_set_isa_flags): Handle bfd_mach_mips9000.
  83. * cpu-mips.c (I_mips9000): Define.
  84. (arch_info_struct): Add case for bfd_mach_mips9000.
  85. * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
  86. * bfd-in2.h: Regenerate.
  87. 2004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
  88. * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
  89. overflow.
  90. 2004-12-07 Ben Elliston <bje@gnu.org>
  91. * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
  92. 2004-12-06 Daniel Jacobowitz <dan@debian.org>
  93. Suggested by Fergal Daly <fergal@esatclear.ie>:
  94. * simple.c (simple_dummy_multiple_definition): New function.
  95. (bfd_simple_get_relocated_section_contents): Use it.
  96. 2004-12-03 Jan Beulich <jbeulich@novell.com>
  97. * elf.c (elf_find_function): Don't use the last file symbol ever,
  98. seen, but the last one seen prior to the symbol being reported.
  99. Don't report a filename at all for global symbols when that might
  100. be ambiguous/wrong.
  101. 2004-12-01 Paul Brook <paul@codesourcery.com>
  102. * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
  103. (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
  104. version.
  105. 2004-12-01 Paul Brook <paul@codesourcery.com>
  106. * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
  107. sections undefined.
  108. 2004-11-30 Paul Brook <paul@codesourcery.com>
  109. * elf32-arm.c (struct elf32_arm_link_hash_table): Remove
  110. no_pipeline_knowledge
  111. (elf32_arm_link_hash_table_create): Ditto.
  112. (bfd_elf32_arm_process_before_allocation): Ditto.
  113. (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation
  114. handling.
  115. * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
  116. prototype.
  117. * bfd-in2.h: Regenerate.
  118. 2004-11-30 Randolph Chung <tausq@debian.org>
  119. * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.
  120. (elf32_hppa_grok_psinfo): New function.
  121. (elf_backend_grok_prstatus): Define.
  122. (elf_backend_grok_psinfo): Define.
  123. 2004-11-24 H.J. Lu <hongjiu.lu@intel.com>
  124. PR 574:
  125. * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
  126. 2004-11-24 Paul Brook <paul@codesourcery.com>
  127. * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
  128. 2004-11-24 Paul Brook <paul@codesourcery.com>
  129. * elf32-arm.c (elf32_arm_swap_symbol_in): New function.
  130. (elf32_arm_swap_symbol_out): New function.
  131. (elf32_arm_size_info): Add.
  132. (elf_backend_size_info): Define.
  133. 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  134. * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
  135. make_bfd_asection.
  136. 2004-11-19 Alan Modra <amodra@bigpond.net.au>
  137. * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
  138. * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
  139. * nlmcode.h (nlm_write_object_contents): Warning fix.
  140. 2004-11-18 Bob Wilson <bob.wilson@acm.org>
  141. * elf32-xtensa.c (ebb_propose_action): Fix argument order.
  142. 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
  143. * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
  144. (elf32_arm_plt_thumb_stub): New.
  145. (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
  146. and plt_got_offset.
  147. (elf32_arm_link_hash_traverse): Fix typo.
  148. (elf32_arm_link_hash_table): Add obfd.
  149. (elf32_arm_link_hash_newfunc): Initialize new fields.
  150. (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
  151. (elf32_arm_link_hash_table_create): Initialize obfd.
  152. (record_arm_to_thumb_glue): Mark the glue as a local ARM function.
  153. (record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
  154. (bfd_elf32_arm_get_bfd_for_interworking): Verify that the
  155. interworking BFD is not dynamic.
  156. (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
  157. not emit glue for PLT references.
  158. (elf32_arm_final_link_relocate): Handle Thumb functions. Do not
  159. emit glue for PLT references. Support the Thumb PLT prefix.
  160. (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
  161. plt_thumb_refcount.
  162. (elf32_arm_check_relocs): Likewise.
  163. (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
  164. plt_thumb_refcount.
  165. (allocate_dynrelocs): Handle Thumb PLT references.
  166. (elf32_arm_finish_dynamic_symbol): Likewise.
  167. (elf32_arm_symbol_processing): New function.
  168. (elf_backend_symbol_processing): Define.
  169. 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
  170. * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
  171. add_fde_encoding. Remove need_relative.
  172. * elf-eh-frame.c (extra_augmentation_string_bytes)
  173. (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
  174. (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
  175. in cases where the CIE has no existing 'R' augmentation. Use
  176. size_of_output_cie_fde when assigning offsets. Use the final offset
  177. as the new section size.
  178. (_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
  179. Account for any extra augmentation bytes in the returned offset.
  180. (_bfd_elf_write_section_eh_frame): Rework so that the entries are
  181. moved before being modified. Pad growing entries with DW_CFA_nops.
  182. Add 'z' and 'R' augmentations as directed by add_augmentation_size
  183. and add_fde_encoding.
  184. 2004-11-15 Mark Mitchell <mark@codesourcery.com>
  185. * elf32-arm.c (elf32_arm_relocate_section): Use
  186. arm_real_reloc_type.
  187. 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
  188. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
  189. for discard relocations; don't add an R_MIPS_NONE to the main body
  190. of .rel.dyn.
  191. 2004-11-04 Paul Brook <paul@codesourcery.com>
  192. * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
  193. * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
  194. (_bfd_elf_slurp_version_tables): Add extra argument. Create extra
  195. default version definition for unversioned symbols.
  196. * elfcode.h (elf_slurp_symbol_table): Pass extra argument.
  197. * elflink.c (elf_link_add_object_symbols): Pass extra argument to
  198. _bfd_elf_slurp_version_tables. Set default version for unversioned
  199. imported symbols.
  200. 2004-11-15 Paul Brook <paul@codesourcery.com>
  201. * elflink.c (elf_link_add_object_symbols): Don't assume version
  202. indices are consecutive.
  203. 2004-11-14 Richard Sandiford <rsandifo@redhat.com>
  204. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
  205. composite relocations against the personality data.
  206. 2004-11-13 Paul Brook <paul@codesourcery.com>
  207. * elf32-arm.c (elf32_arm_final_link_relocate): Resolve
  208. R_ARM_PREL31 relocations to PLT entries.
  209. (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
  210. (elf32_arm_check_relocs): Ditto.
  211. 2004-11-12 Bob Wilson <bob.wilson@acm.org>
  212. * xtensa-isa.c (xtensa_interface_class_id): New.
  213. 2004-11-11 Bob Wilson <bob.wilson@acm.org>
  214. * elf32-xtensa.c (property_table_compare): Remove assertion about
  215. entries with the same address and non-zero size.
  216. (xtensa_read_table_entries): Report such entries as errors.
  217. 2004-11-11 Mark Mitchell <mark@codesourcery.com>
  218. * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
  219. R_ARM_RELATIVE on Symbian OS.
  220. 2004-11-09 Mark Mitchell <mark@codesourcery.com>
  221. * som.c (som_bfd_print_private_bfd_data): New function.
  222. (som_object_setup): Save the auxiliary header. Don't assume that
  223. zero is an invalid entry point for a shared library.
  224. (som_object_p): Allocate the auxiliary header on the heap.
  225. * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
  226. declaration.
  227. (elf32_arm_symbian_modify_segment_map): Likewise.
  228. 2004-11-09 Daniel Jacobowitz <dan@debian.org>
  229. From David Poole <daveml@mbuf.com>:
  230. * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
  231. (elf32_arm_size_dynamic_sections): Call it.
  232. 2004-11-09 Alan Modra <amodra@bigpond.net.au>
  233. * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
  234. (ALL_MACHINES_CFILES): Fix typo.
  235. * Makefile.in: Regenerate.
  236. * po/SRC-POTFILES.in: Regenerate.
  237. 2004-11-08 Mark Mitchell <mark@codesourcery.com>
  238. * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
  239. R_ARM_RELATIVE relocation for Symbian OS, mention the section
  240. symbol in the relocation.
  241. 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
  242. Vineet Sharma <vineets@noida.hcltech.com>
  243. * coff-maxq.c: New File.
  244. * cpu-maxq.c: New File.
  245. * coffcode.h: Likewise.
  246. * config.bfd: Likewise.
  247. * configure.in (maxqcoff_vec): New target vector.
  248. * Makefile.am: Add support for maxq target.
  249. * configure.in: Likewise.
  250. * archures.c:. Likewise.
  251. * targets.c: Likewise.
  252. * bfd_in2.h : Regenerated.
  253. * Makefile.in: Regenerated.
  254. * configure: Regenerated.
  255. * doc/Makefile.in: Regenerated.
  256. 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
  257. * coff-i386.c (coff_i386_reloc): Fix weak symbols.
  258. * cofflink.c (_bfd_coff_link_input_bfd): Don't process
  259. C_NT_WEAK aux entries.
  260. (_bfd_coff_generic_relocate_section): Handle undefined
  261. aliases.
  262. 2004-11-07 Andreas Schwab <schwab@suse.de>
  263. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
  264. SYMBOL_CALLS_LOCAL and check for undefweak symbols with
  265. non-default visibility.
  266. 2004-11-01 Mark Mitchell <mark@codesourcery.com>
  267. * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
  268. D_PAGED.
  269. (elf32_arm_symbian_modify_segment_map): Don't
  270. reset includes_filehdr and includes_phdrs here.
  271. 2004-11-04 Daniel Jacobowitz <dan@debian.org>
  272. * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
  273. elfarm-nabi with elf32-arm. Remove elfarm-oabi.
  274. (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
  275. dependency.
  276. * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
  277. to a new removed list. Remove normal configuration stanzas.
  278. * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
  279. (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
  280. elfarm-nabi.lo with elf32-arm.lo.
  281. (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
  282. * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
  283. * elf32-arm.h: Remove.
  284. * elfarm-oabi.c: Remove.
  285. * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
  286. and bfd_elf32_littlearm_oabi_vec.
  287. * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
  288. 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
  289. * config.bfd: Support crisv32-*-* like cris-*-*.
  290. * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
  291. (bfd_mach_cris_v10_v32): New macros.
  292. * cpu-cris.c: Tweak formatting.
  293. (get_compatible): New function.
  294. (N): New macro.
  295. (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
  296. bfd_arch_info_type:s.
  297. (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
  298. get_compatible for member compatible and link bfd_cris_arch_v32 as
  299. next.
  300. * elf32-cris.c (cris_elf_pcrel_reloc)
  301. (cris_elf_set_mach_from_flags): New functions.
  302. (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
  303. <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
  304. (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
  305. numbers for bfd_mach_cris_v32.
  306. (PLT_ENTRY_SIZE_V32): New macro.
  307. (elf_cris_plt0_entry): Drop last comma in initializer.
  308. (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
  309. (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
  310. PLT initializers.
  311. (cris_elf_relocate_section): Change all "%B(%A)" messages to
  312. "%B, section %A".
  313. (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
  314. (elf_cris_finish_dynamic_sections): Similar.
  315. (elf_cris_adjust_dynamic_symbol): Similar.
  316. (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
  317. section %A".
  318. <switch with PIC relocs>: Emit error and return FALSE for
  319. bfd_mach_cris_v10_v32.
  320. <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
  321. Emit warning when generating textrel reloc.
  322. (cris_elf_object_p): Call cris_elf_set_mach_from_flags.
  323. (cris_elf_final_write_processing): Set flags according to mach.
  324. (cris_elf_print_private_bfd_data): Display
  325. EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
  326. (cris_elf_merge_private_bfd_data): Drop variables old_flags,
  327. new_flags. Don't call cris_elf_final_write_processing. Don't
  328. look at the actual elf header flags at all; use
  329. bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
  330. in bfd_get_mach for ibfd and obfd and handle merging of compatible
  331. objects.
  332. (bfd_elf32_bfd_copy_private_bfd_data): Define.
  333. * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
  334. (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
  335. (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
  336. * bfd-in2.h, libbfd.h: Regenerate.
  337. 2004-11-04 Alan Modra <amodra@bigpond.net.au>
  338. * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
  339. * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
  340. comment.
  341. (struct adjust_toc_info): New.
  342. (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
  343. 2004-11-03 Bob Wilson <bob.wilson@acm.org>
  344. * elf.c (assign_file_positions_for_segments): Set next_file_pos even
  345. if there are no segments.
  346. 2004-11-02 Daniel Jacobowitz <dan@debian.org>
  347. * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
  348. 2004-11-02 Nick Clifton <nickc@redhat.com>
  349. * elf32-iq2000.c: Convert to ISO C90 formatting.
  350. 2004-11-02 Hans-Peter Nilsson <hp@axis.com>
  351. * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
  352. 2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
  353. * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
  354. undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
  355. R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
  356. 2004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  357. * elf32-sh.c (tpoff): Take alignment into account.
  358. 2004-10-28 Nick Clifton <nickc@redhat.com>
  359. * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
  360. performing a relocatable link.
  361. (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
  362. for MIPS ports under Irix.
  363. 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
  364. * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
  365. R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
  366. (elf32_arm_final_link_relocate): Ditto.
  367. (arm_add_to_rel, elf32_arm_relocate_section): Ditto.
  368. (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
  369. (elf32_arm_adjust_dynamic_symbol): Ditto.
  370. * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
  371. R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
  372. (elf32_arm_r_howto): ... To here.
  373. (elf32_arm_howto_from_type): Use elf32_arm_r_howto.
  374. 2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
  375. PR 475
  376. * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
  377. R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
  378. and R_IA64_SECREL64LSB.
  379. 2004-10-26 Paul Brook <paul@codesourcery.com>
  380. * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
  381. (bfd_elf_size_dynamic_sections): Create default version definition.
  382. (elf_link_output_extsym): Adjust for default symbol version.
  383. 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
  384. * mmo.c: Adjust to ISO C.
  385. * mmo.c (mmo_write_section_description): New function broken out
  386. of mmo_internal_write_section.
  387. (mmo_internal_write_section): For each of .text and .data, call
  388. mmo_write_section_description before outputting contents if it has
  389. nontrivially deducible vma or contents.
  390. (mmo_has_leading_or_trailing_zero_tetra_p): New function.
  391. (mmo_canonicalize_symtab): Adjust absolute symbols to .data
  392. symbols if found within the .data address range.
  393. 2004-10-24 Daniel Jacobowitz <dan@debian.org>
  394. * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
  395. 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
  396. * mmo.c (File Layout): Correct place of misplaced blurb about
  397. special data.
  398. 2004-10-22 Mark Kettenis <kettenis@gnu.org>
  399. * config.bfd: Add mips64*-*-openbsd.
  400. 2004-10-21 Bob Wilson <bob.wilson@acm.org>
  401. * elf32-xtensa.c (ebb_propose_action): Put declarations before
  402. statements.
  403. 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
  404. * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
  405. * configure: Regenerate.
  406. 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
  407. PR 463
  408. * aoutx.h (aout_link_input_section_std): Pass proper hash entry
  409. to linker reloc_overflow callback.
  410. (aout_link_input_section_ext): Likewise.
  411. (aout_link_reloc_link_order): Likewise.
  412. * coff-a29k.c (coff_a29k_relocate_section): Likewise.
  413. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
  414. Likewise.
  415. (alpha_relocate_section): Likewise.
  416. * coff-arm.c (coff_arm_relocate_section): Likewise.
  417. * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
  418. * coff-h8500.c (extra_case): Likewise.
  419. * coff-i960.c (coff_i960_relocate_section): Likewise.
  420. * coff-mcore.c (coff_mcore_relocate_section): Likewise.
  421. * coff-mips.c (mips_relocate_section): Likewise.
  422. * coff-or32.c (coff_or32_relocate_section): Likewise.
  423. * coff-ppc.c (coff_ppc_relocate_section): Likewise.
  424. * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
  425. * coff-sh.c (sh_relocate_section): Likewise.
  426. * coff-tic80.c (coff_tic80_relocate_section): Likewise.
  427. * coff-w65.c (w65_reloc16_extra_cases): Likewise.
  428. * coff-z8k.c (extra_case): Likewise.
  429. * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
  430. * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
  431. (_bfd_coff_generic_relocate_section): Likewise.
  432. * ecoff.c (ecoff_reloc_link_order): Likewise.
  433. * elf-hppa.h (elf_hppa_relocate_section): Likewise.
  434. * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
  435. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  436. * elf32-arm.h (elf32_arm_relocate_section): Likewise.
  437. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  438. * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
  439. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  440. * elf32-crx.c (elf32_crx_relocate_section): Likewise.
  441. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  442. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  443. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  444. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  445. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  446. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  447. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  448. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  449. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  450. * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
  451. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  452. * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
  453. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  454. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  455. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  456. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  457. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  458. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  459. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  460. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  461. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  462. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  463. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  464. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  465. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  466. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  467. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  468. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  469. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  470. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  471. * elflink.c (elf_reloc_link_order): Likewise.
  472. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  473. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
  474. (_bfd_elf_mips_get_relocated_section_contents): Likewise.
  475. * linker.c (_bfd_generic_reloc_link_order): Likewise.
  476. * pdp11.c (pdp11_aout_link_input_section): Likewise.
  477. (aout_link_reloc_link_order): Likewise.
  478. * reloc.c (bfd_generic_get_relocated_section_contents):
  479. Likewise.
  480. * xcofflink.c (xcoff_reloc_link_order): Likewise.
  481. * simple.c (simple_dummy_reloc_overflow): Updated.
  482. 2004-10-20 Andreas Schwab <schwab@suse.de>
  483. * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
  484. (elf_backend_plt_sym_val): Define.
  485. 2004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
  486. * config.bfd: Set targ_underscore=yes for PE COFF targets
  487. 2004-10-19 Alan Modra <amodra@bigpond.net.au>
  488. * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
  489. (ppc64_elf_edit_opd): Likewise.
  490. 2004-10-18 Mark Mitchell <mark@codesourcery.com>
  491. * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
  492. * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
  493. set SEC_ALLOC and SEC_LOAD.
  494. 2004-10-18 Nick Clifton <nickc@redhat.com>
  495. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
  496. 'name' for relocs against both local and global symbols.
  497. 2004-10-16 Daniel Jacobowitz <dan@debian.org>
  498. * bfd-in2.h: Regenerate.
  499. * bfd.c (struct bfd): Add no_export.
  500. * elflink.c (elf_link_add_object_symbols): Handle no_export.
  501. 2004-10-15 Alan Modra <amodra@bigpond.net.au>
  502. * config.bfd: Whitespace cleanup.
  503. * Makefile.am: Run "make dep-am"
  504. * Makefile.in: Regenerate.
  505. 2004-10-15 Jakub Jelinek <jakub@redhat.com>
  506. * elflink.c (struct already_linked_section): Removed.
  507. (try_match_symbols_in_sections, already_linked): Removed.
  508. (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
  509. prefix of section names when finding already_linked_table
  510. chain. Compare section names. Instead of calling already_linked,
  511. do it inline and only for sections in the same already_linked_list.
  512. 2004-10-15 Alan Modra <amodra@bigpond.net.au>
  513. * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
  514. parameter. If called after _bfd_elf_write_section_eh_frame,
  515. don't allow a -2 return unless need_* bit is already set, and
  516. handle offsets adjusted for output_offset.
  517. * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
  518. * elf.c (_bfd_elf_section_offset): Update call.
  519. 2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
  520. PR 440
  521. * coffcode.h (coff_compute_section_file_positions): Cast to
  522. bfd_vma when computing page alignment.
  523. 2004-10-13 Mark Mitchell <mark@codesourcery.com>
  524. * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
  525. offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
  526. 2004-10-12 Mark Mitchell <mark@codesourcery.com>
  527. * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
  528. relocations use a virtual address, not a section offset.
  529. 2004-10-12 Bob Wilson <bob.wilson@acm.org>
  530. * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
  531. (narrow_instruction, widen_instruction): Remove unnecessary calls to
  532. xtensa_format_encode.
  533. (ebb_propose_action): Inline call to ebb_add_proposed_action.
  534. (ebb_add_proposed_action): Delete.
  535. 2004-10-12 Bob Wilson <bob.wilson@acm.org>
  536. * elf32-xtensa.c: Use ISO C90 formatting.
  537. 2004-10-12 Paul Brook <paul@codesourcery.com>
  538. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
  539. message.
  540. 2004-10-12 Paul Brook <paul@codesourcery.com>
  541. * elf32-arm.h: Support EABI version 4 objects.
  542. 2004-10-12 Alan Modra <amodra@bigpond.net.au>
  543. PR 325
  544. * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
  545. Don't mark as default.
  546. (bfd_x86_64_arch): Don't mark as default.
  547. 2004-10-12 Alan Modra <amodra@bigpond.net.au>
  548. * elflink.c (enum action_discarded): New.
  549. (elf_section_complain_discarded): Delete.
  550. (elf_action_discarded): New function subsuming the above and also
  551. controlling reloc behaviour.
  552. (elf_link_input_bfd): Use it.
  553. 2004-10-11 Jakub Jelinek <jakub@redhat.com>
  554. * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
  555. (special_sections): Add .gnu.liblist and .gnu.conflict.
  556. (assign_section_numbers): Handle SHT_GNU_LIBLIST.
  557. 2004-10-11 Alan Modra <amodra@bigpond.net.au>
  558. PR 233
  559. * elflink.c (elf_link_input_bfd): Try harder to support
  560. relocations against symbols in removed linkonce sections.
  561. 2004-10-11 Alan Modra <amodra@bigpond.net.au>
  562. * elflink.c (elf_link_input_bfd): Revert PR 354 change.
  563. PR 354
  564. * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
  565. sections do not reference symbols in non-SEC_ALLOC sections.
  566. 2004-10-11 Alan Modra <amodra@bigpond.net.au>
  567. PR 437
  568. * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
  569. (_bfd_elf_link_omit_section_dynsym): Formatting.
  570. 2004-10-10 Alan Modra <amodra@bigpond.net.au>
  571. * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
  572. * libbfd.h: Regnerate.
  573. * elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
  574. * elf32-frv.c: Likewise.
  575. * elf32-m32r.c: Likewise.
  576. * elf32-ppc.c: Likewise.
  577. * elf64-hppa.c: Likewise.
  578. * elfxx-ia64.c: Likewise.
  579. * opncls.c: Likewise.
  580. 2004-10-10 Alan Modra <amodra@bigpond.net.au>
  581. * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
  582. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
  583. offsets stored in struct eh_cie_fde entries before doing other
  584. work.
  585. * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
  586. (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
  587. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
  588. setting offsets for removed CIEs. Don't set "sec", instead set
  589. cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a
  590. CIE in hdr_info. Only set make_relative and make_lsda_relative
  591. for CIEs. Use pointers rather than array indices.
  592. (_bfd_elf_eh_frame_section_offset): Test/set make_relative,
  593. make_lsda_relative, need_* on cie_inf for FDEs.
  594. (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
  595. section output_offset. Delete cie_offset, instead use cie_inf
  596. pointer to CIE entry. Use need_relative and need_lsda_relative on
  597. CIE entry for FDEs. Use pointers rather than array indices.
  598. 2004-10-09 Alan Modra <amodra@bigpond.net.au>
  599. * coff-rs6000.c (rs6000coff_vec): Add initializer for
  600. bfd_is_target_special_symbol.
  601. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  602. * som.c (som_bfd_is_target_special_symbol): Define.
  603. 2004-10-08 Nick Clifton <nickc@redhat.com>
  604. * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93.
  605. * configure: Regenerate.
  606. * bfd-in2.h: Regenerate.
  607. * syms.c (bfd_is_target_special_symbol): New interface function.
  608. Returns true when a symbol should be considered to be special.
  609. * targets.c (bfd_target): Include bfd_is_target_special_symbol in
  610. the symbol jump table.
  611. * elf32-arm.h (elf32_arm_is_target_special_symbol): New function.
  612. Return true iff the symbol is a mapping symbol.
  613. (bfd_elf32_bfd_is_target_special_symbol): Define.
  614. * elfxx-target.h: Provide a default definition for
  615. bfd_is_target_special_symbol.
  616. * aout-target.h: Likewise.
  617. * aout-tic30.c: Likewise.
  618. * binary.c: Likewise.
  619. * coffcode.h: Likewise.
  620. * i386msdos.c: Likewise.
  621. * ieee.c: Likewise.
  622. * ihex.c: Likewise.
  623. * libaout.h: Likewise.
  624. * libbfd-in.h: Likewise
  625. * libecoff.h: Likewise.
  626. * mach-o.c: Likewise.
  627. * mmo.c: Likewise.
  628. * nlm-target.h: Likewise.
  629. * oasys.c: Likewise.
  630. * pef.c: Likewise.
  631. * ppcboot.c: Likewise.
  632. * srec.c: Likewise.
  633. * tekhex.c: Likewise.
  634. * versados.c: Likewise.
  635. * vms.c: Likewise.
  636. * xcoff-target.h: Likewise.
  637. * xsym.c: Likewise.
  638. * libbfd.h: Regenerate.
  639. 2004-10-08 Daniel Jacobowitz <dan@debian.org>
  640. * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
  641. * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
  642. (elf_backend_section_from_shdr): Define.
  643. 2004-10-08 Alan Modra <amodra@bigpond.net.au>
  644. * syms.c (bfd_is_local_label): Return false for file symbols.
  645. 2004-10-07 Bob Wilson <bob.wilson@acm.org>
  646. David Heine <dlheine@tensilica.com>
  647. * elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
  648. (xtensa_default_isa): Global variable moved here from xtensa-isa.c.
  649. (elf32xtensa_no_literal_movement): New global variable.
  650. (elf_howto_table): Add entries for new relocations.
  651. (elf_xtensa_reloc_type_lookup): Handle new relocations.
  652. (property_table_compare): When addresses are equal, compare sizes and
  653. various property flags.
  654. (property_table_matches): New.
  655. (xtensa_read_table_entries): Extend to read new property tables. Add
  656. output_addr parameter to indicate that output addresses should be used.
  657. Use bfd_get_section_limit.
  658. (elf_xtensa_find_property_entry): New.
  659. (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
  660. (elf_xtensa_check_relocs): Handle new relocations.
  661. (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
  662. relocations. Use new xtensa-isa.h functions.
  663. (build_encoding_error_message): Remove encode_result parameter. Add
  664. new target_address parameter used to detect alignment errors.
  665. (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
  666. error handling. Use new is_operand_relocation function.
  667. (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
  668. Use underbar macro for error messages. Formatting.
  669. (get_const16_opcode): New.
  670. (get_l32r_opcode): Add a separate flag for initialization.
  671. (get_relocation_opnd): Operand number is no longer explicit in the
  672. relocation. Change to decode the opcode and analyze its operands.
  673. (get_relocation_slot): New.
  674. (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
  675. Use new xtensa-isa.h functions to handle multislot instructions.
  676. (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
  677. (get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
  678. insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
  679. check_loop_aligned, check_branch_target_aligned_address, narrowable,
  680. widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
  681. get_single_format, init_op_single_format_table): New.
  682. (elf_xtensa_do_asm_simplify): Add error_message parameter and use it
  683. instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
  684. (contract_asm_expansion): Add error_message parameter and pass it to
  685. elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
  686. with R_XTENSA_SLOT0_OP.
  687. (get_expanded_call_opcode): Extend to handle either L32R or CONST16
  688. instructions. Use new xtensa-isa.h functions.
  689. (r_reloc struct): Add new virtual_offset field.
  690. (r_reloc_init): Add contents and content_length parameters. Set
  691. virtual_offset field to zero. Add contents to target_offset field for
  692. partial_inplace relocations.
  693. (r_reloc_is_defined): Check for null.
  694. (print_r_reloc): New debug function.
  695. (source_reloc struct): Replace xtensa_operand field with pair of the
  696. opcode and the operand position. Add is_abs_literal field.
  697. (init_source_reloc): Specify operand by opcode/position pair. Set
  698. is_abs_literal field.
  699. (source_reloc_compare): When target_offsets are equal, compare other
  700. fields to make sorting predictable.
  701. (literal_value struct): Add is_abs_literal field.
  702. (value_map_hash_table struct): Add has_last_loc and last_loc fields.
  703. (init_literal_value): New.
  704. (is_same_value): Replace with ...
  705. (literal_value_equal): ... this function. Add comparisons of
  706. virtual_offset and is_abs_literal fields.
  707. (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
  708. failure. Initialize has_last_loc field.
  709. (value_map_hash_table_delete): New.
  710. (hash_literal_value): Rename to ...
  711. (literal_value_hash): ... this. Include is_abs_literal flag and
  712. virtual_offset field in the hash value.
  713. (get_cached_value): Rename to ...
  714. (value_map_get_cached_value): ... this. Update calls to
  715. literal_value_hash and literal_value_equal.
  716. (add_value_map): Check for allocation failure. Update calls to
  717. value_map_get_cached_value and literal_value_hash.
  718. (text_action, text_action_list, text_action_t): New types.
  719. (find_fill_action, compute_removed_action_diff, adjust_fill_action,
  720. text_action_add, text_action_add_literal, offset_with_removed_text,
  721. offset_with_removed_text_before_fill, find_insn_action,
  722. print_action_list, print_removed_literals): New.
  723. (offset_with_removed_literals): Delete.
  724. (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
  725. fix_array, fix_array_count, allocated_relocs, relocs_count, and
  726. allocated_relocs_count fields.
  727. (init_xtensa_relax_info): Initialize new fields.
  728. (reloc_bfd_fix struct): Add new translated field.
  729. (reloc_bfd_fix_init): Add translated parameter and use it to set the
  730. translated field.
  731. (fix_compare, cache_fix_array): New.
  732. (get_bfd_fix): Remove fix_list parameter and get all relax_info for the
  733. section via get_xtensa_relax_info. Use cache_fix_array to set up
  734. sorted fix_array and use bsearch instead of linear search.
  735. (section_cache_t): New struct.
  736. (init_section_cache, section_cache_section, clear_section_cache): New.
  737. (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
  738. (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
  739. extend_ebb_bounds_forward, extend_ebb_bounds_backward,
  740. insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
  741. New.
  742. (retrieve_contents): Use bfd_get_section_limit.
  743. (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
  744. to compute_removed_literals. Free value_map_hash_table when no longer
  745. needed.
  746. (analyze_relocations): Check is_relaxable_asm_section flag. Call
  747. compute_text_actions for all sections.
  748. (find_relaxable_sections): Mark sections as relaxable if they contain
  749. ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
  750. call. Increment relax_info src_count field only for appropriate
  751. relocation types. Remove is_literal_section check.
  752. (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
  753. r_reloc_init and find_associated_l32r_irel. Check
  754. is_relaxable_asm_section flag. Handle L32R instructions with absolute
  755. literals. Pass is_abs_literal flag to init_source_reloc.
  756. (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
  757. CONST16 instructions. Adjust calls to r_reloc_init and
  758. pcrel_reloc_fits. Handle weak symbols conservatively.
  759. (find_associated_l32r_irel): Add bfd parameter and pass it to
  760. is_l32r_relocation.
  761. (compute_text_actions, compute_ebb_proposed_actions,
  762. compute_ebb_actions, check_section_ebb_pcrels_fit,
  763. check_section_ebb_reduces, text_action_add_proposed,
  764. compute_fill_extra_space): New.
  765. (remove_literals): Replace with ...
  766. (compute_removed_literals): ... this function. Call
  767. init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
  768. Call xtensa_read_table_entries to get the property table. Skip
  769. relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
  770. is_removable_literal, remove_dead_literal, and
  771. identify_literal_placement functions.
  772. (get_irel_at_offset): Rewrite to use bsearch on sorted relocations
  773. instead of linear search.
  774. (is_removable_literal, remove_dead_literal,
  775. identify_literal_placement): New.
  776. (relocations_reach): Update check for literal not referenced by any
  777. PC-relative relocations. Adjust call to pcrel_reloc_fits.
  778. (coalesce_shared_literal, move_shared_literal): New.
  779. (relax_section): Use bfd_get_section_limit. Call
  780. translate_section_fixes. Update calls to r_reloc_init and
  781. offset_with_removed_text. Check new is_relaxable_asm_section flag.
  782. Add call to pin_internal_relocs. Add special handling for
  783. R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
  784. info to calculate new addend_displacement variable. Replace code for
  785. deleting literals with more general code to perform the actions
  786. determined by the action_list for the section.
  787. (translate_section_fixes, translate_reloc_bfd_fix): New.
  788. (translate_reloc): Check new is_relaxable_asm_section flag. Call
  789. find_removed_literal only if is_operand_relocation. Update call to
  790. offset_with_removed_text. Use new target_offset and removed_bytes
  791. variables.
  792. (move_literal): New.
  793. (relax_property_section): Use bfd_get_section_limit. Set new
  794. is_full_prop_section flag and handle new property tables. Update calls
  795. to r_reloc_init and offset_with_removed_text. Check
  796. is_relaxable_asm_section flag. Handle expansion of zero-sized
  797. unreachable entries, with use of offset_with_removed_text_before_fill.
  798. For relocatable links, combine entries only for literal tables.
  799. (relax_section_symbols): Check is_relaxable_asm_section flag. Update
  800. calls to offset_with_removed_text. Translate st_size field for
  801. function symbols.
  802. (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
  803. failure. Add contents parameter. Update call to get_bfd_fix. Update
  804. call to r_reloc_init. Call _bfd_error_handler and return FALSE for
  805. R_XTENSA_ASM_EXPAND relocs.
  806. (do_fix_for_final_link): Add input_bfd and contents parameters. Update
  807. call to get_bfd_fix. Include offset from contents for partial_inplace
  808. relocations.
  809. (is_reloc_sym_weak): New.
  810. (pcrel_reloc_fits): Use new xtensa-isa.h functions.
  811. (prop_sec_len): New.
  812. (xtensa_is_property_section): Handle new property sections.
  813. (is_literal_section): Delete.
  814. (internal_reloc_compare): When r_offset matches, compare r_info and
  815. r_addend to make sorting predictable.
  816. (internal_reloc_matches): New.
  817. (xtensa_get_property_section_name): Handle new property sections.
  818. (xtensa_get_property_predef_flags): New.
  819. (xtensa_callback_required_dependence): Use bfd_get_section_limit.
  820. Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
  821. * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
  822. (xtisa_errno, xtisa_error_msg): New variables.
  823. (xtensa_isa_errno, xtensa_isa_error_msg): New.
  824. (xtensa_insnbuf_alloc): Add error handling.
  825. (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
  826. use xtensa_format_decode. Add error handling.
  827. (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
  828. instruction length to find the number of bytes to copy.
  829. (xtensa_isa_init): Add error handling. Replace calls to
  830. xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
  831. tables in the xtensa_modules structure.
  832. (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
  833. xtensa_extend_isa): Delete.
  834. (xtensa_isa_free): Change to only free lookup tables.
  835. (opname_lookup_compare): Replace with ...
  836. (xtensa_isa_name_compare): ... this function. Use strcasecmp.
  837. (xtensa_insn_maxlength): Rename to ...
  838. (xtensa_isa_maxlength): ... this.
  839. (xtensa_insn_length): Delete.
  840. (xtensa_insn_length_from_first_byte): Replace with ...
  841. (xtensa_isa_length_from_chars): ... this function.
  842. (xtensa_num_opcodes): Rename to ...
  843. (xtensa_isa_num_opcodes): ... this.
  844. (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
  845. xtensa_isa_num_regfiles, xtensa_isa_num_stages,
  846. xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
  847. xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
  848. xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
  849. xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
  850. xtensa_format_get_slot, xtensa_format_set_slot): New functions.
  851. (xtensa_opcode_lookup): Add error handling.
  852. (xtensa_decode_insn): Replace with ...
  853. (xtensa_opcode_decode): ... this function, with new format and
  854. slot parameters. Add error handling.
  855. (xtensa_encode_insn): Replace with ...
  856. (xtensa_opcode_encode): ... this function, which does the encoding via
  857. one of the entries in the "encode_fns" array. Add error handling.
  858. (xtensa_opcode_name): Add error handling.
  859. (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
  860. xtensa_opcode_is_call): New.
  861. (xtensa_num_operands): Replace with ...
  862. (xtensa_opcode_num_operands): ... this function. Add error handling.
  863. (xtensa_opcode_num_stateOperands,
  864. xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
  865. xtensa_opcode_funcUnit_use, xtensa_operand_name,
  866. xtensa_operand_is_visible): New.
  867. (xtensa_get_operand, xtensa_operand_kind): Delete.
  868. (xtensa_operand_inout): Add error handling and special-case for
  869. "sout" operands.
  870. (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
  871. operate on one slot of an instruction. Added error handling.
  872. (xtensa_operand_encode): Handle default operands with no encoding
  873. functions. Check for success by comparing against decoded value.
  874. Add error handling.
  875. (xtensa_operand_decode): Handle default operands. Return decoded value
  876. through argument pointer. Add error handling.
  877. (xtensa_operand_is_register, xtensa_operand_regfile,
  878. xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
  879. (xtensa_operand_isPCRelative): Rename to ...
  880. (xtensa_operand_is_PCrelative): ... this. Add error handling.
  881. (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
  882. through argument pointer. Add error handling.
  883. (xtensa_stateOperand_state, xtensa_stateOperand_inout,
  884. xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
  885. xtensa_regfile_lookup_shortname, xtensa_regfile_name,
  886. xtensa_regfile_shortname, xtensa_regfile_view_parent,
  887. xtensa_regfile_num_bits, xtensa_regfile_num_entries,
  888. xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
  889. xtensa_state_is_exported, xtensa_sysreg_lookup,
  890. xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
  891. xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
  892. xtensa_interface_num_bits, xtensa_interface_inout,
  893. xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
  894. xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
  895. * xtensa-modules.c: Rewrite to use new data structures.
  896. * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
  897. BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
  898. BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
  899. BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
  900. BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
  901. BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
  902. BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
  903. BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
  904. BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
  905. BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
  906. BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
  907. BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
  908. BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
  909. BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
  910. BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
  911. BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
  912. BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
  913. * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
  914. * Makefile.in: Regenerate.
  915. * bfd-in2.h: Likewise.
  916. * libbfd.h: Likewise.
  917. 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
  918. * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
  919. against the absolute section.
  920. (mips_elf64_write_rela): Likewise.
  921. 2004-10-07 Jan Beulich <jbeulich@novell.com>
  922. * elf.c (elf_find_function): Don't generally check for matching
  923. section, just for non-file symbols. Remove redunant comparison
  924. for the latter.
  925. * elf32-arm.h (arm_elf_find_function): Likewise.
  926. 2004-10-07 Jeff Baker <jbaker@qnx.com>
  927. * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if
  928. adding a DT_TEXTREL to a shared object and --warn-shared-textrel
  929. was specified.
  930. 2004-10-04 Roland McGrath <roland@redhat.com>
  931. * hash.c (bfd_hash_set_default_size): Use const for table.
  932. Use size_t instead of int for variable compared to sizeof results.
  933. 2004-10-05 Alan Modra <amodra@bigpond.net.au>
  934. PR 425
  935. * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
  936. 2004-10-01 Paul Brook <paul@codesourcery.com>
  937. * elf32-arm.h (elf32_arm_fake_sections,
  938. is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
  939. functions.
  940. (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
  941. 2004-10-01 Alan Modra <amodra@bigpond.net.au>
  942. * elf-bfd.h (struct eh_cie_fde): Add need_relative and
  943. need_lsda_relative.
  944. * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
  945. need_relative or need_lsda_relative if we are processing an
  946. offset for a reloc on a FDE initial loc or LSDA field
  947. respectively.
  948. (_bfd_elf_write_section_eh_frame): Test need_relative and
  949. need_lsda_relative in place of corresponding make_* field
  950. when deciding to use pc-relative encodings.
  951. 2004-09-30 Paul Brook <paul@codesourcery.com>
  952. * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
  953. target2 relocation type.
  954. 2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
  955. PR 414
  956. * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
  957. 2004-09-30 Paul Brook <paul@codesourcery.com>
  958. * reloc.c: Add BFD_RELOC_ARM_SMI.
  959. * bfd-in2.h: Regenerate.
  960. * libbfd.h: Ditto.
  961. 2004-09-24 Alan Modra <amodra@bigpond.net.au>
  962. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
  963. vma and output offset to address.
  964. * simple.c (simple_save_output_info): Only set output section
  965. and offset for debug sections, or those not already set up by
  966. the linker.
  967. (bfd_simple_get_relocated_section_contents): Update comment.
  968. 2004-09-24 Alan Modra <amodra@bigpond.net.au>
  969. * elf.c (IS_LOADED): Delete.
  970. (assign_file_positions_for_segments): Just test SEC_LOAD instead.
  971. Restore SEC_HAS_CONTENTS test to the one place it was used prior
  972. to 2004-09-22.
  973. 2004-09-23 Alan Modra <amodra@bigpond.net.au>
  974. PR gas/396
  975. * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
  976. bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove
  977. redundant assignment of EM_SPARC.
  978. 2004-09-22 Brian Ford <ford@vss.fsi.com>
  979. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
  980. alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
  981. constants.
  982. * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
  983. 2004-09-22 Alan Modra <amodra@bigpond.net.au>
  984. * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
  985. (elf_backend_modify_segment_map): Don't define.
  986. 2004-09-22 Alan Modra <amodra@bigpond.net.au>
  987. * elf.c (IS_LOADED): Define.
  988. (assign_file_positions_for_segments): Don't round up file offset of
  989. PT_LOAD segments containing no SEC_LOAD sections, instead round down.
  990. Delete code handling link script adjustment of lma. Do the adjust
  991. in later code handling similar ajustments. Remove dead code error
  992. check. Warn if section lma would require a negative offset
  993. adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
  994. Use p_vaddr + p_memsz inside section loop in place of voff. Don't
  995. update voff in section loop. Change voff in segment loop to be an
  996. adjustment on top of "off". Set sec->filepos and update "off" later.
  997. Test for loadable sections consistently using IS_LOADED. Similarly,
  998. test for alloc-only sections other than .tbss consistently.
  999. Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
  1000. Tidy PT_NOTE handling. Use %B and %A in error messages.
  1001. (assign_file_positions_except_relocs): Use %B in error message.
  1002. 2004-09-17 H.J. Lu <hongjiu.lu@intel.com>
  1003. * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
  1004. (CONFIG_STATUS_DEPENDENCIES): New.
  1005. (Makefile): Removed.
  1006. (config.status): Likewise.
  1007. * Makefile.in: Regenerated.
  1008. 2004-09-17 Paul Brook <paul@codesourcery.com>
  1009. * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
  1010. (bfd_elf32_arm_process_before_allocation): Update prototype.
  1011. * bfd-in2.h: Regenerate.
  1012. * elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
  1013. (elf32_arm_link_hash_table_create): Set it.
  1014. (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
  1015. (bfd_elf32_arm_set_target_relocs): New function.
  1016. (arm_real_reloc_type): New function.
  1017. (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
  1018. R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
  1019. (elf32_arm_gc_sweep_hook): Ditto.
  1020. (elf32_arm_check_relocs): Ditto.
  1021. (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
  1022. * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
  1023. R_ARM_GOT_TARGET2.
  1024. (elf32_arm_got_prel): New variable.
  1025. (elf32_arm_howto_from_type): New function.
  1026. (elf32_arm_info_to_howto): Use it.
  1027. (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
  1028. BFD_RELOC_ARM_TARGET2.
  1029. * libbfd.h: Regenerate.
  1030. * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
  1031. 2004-09-17 Alan Modra <amodra@bigpond.net.au>
  1032. * ecoff.c: Update u.undef.next refs.
  1033. * elf64-ppc.c: Likewise.
  1034. * elflink.c: Likewise.
  1035. * linker.c: Likewise.
  1036. * xcofflink.c: Likewise.
  1037. * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
  1038. dynamic_def. Combine weakdef and elf_hash_value. Move vtable
  1039. fields to indirect struct.
  1040. * elf-m10300.c: Update u.weakdef refs.
  1041. * elf32-arm.h: Likewise.
  1042. * elf32-cris.c: Likewise.
  1043. * elf32-frv.c: Likewise.
  1044. * elf32-hppa.c: Likewise.
  1045. * elf32-i370.c: Likewise.
  1046. * elf32-i386.c: Likewise.
  1047. * elf32-m32r.c: Likewise.
  1048. * elf32-m68k.c: Likewise.
  1049. * elf32-ppc.c: Likewise.
  1050. * elf32-s390.c: Likewise.
  1051. * elf32-sh.c: Likewise.
  1052. * elf32-sparc.c: Likewise.
  1053. * elf32-vax.c: Likewise.
  1054. * elf32-xtensa.c: Likewise.
  1055. * elf64-alpha.c: Likewise.
  1056. * elf64-hppa.c: Likewise.
  1057. * elf64-ppc.c: Likewise.
  1058. * elf64-s390.c: Likewise.
  1059. * elf64-sh64.c: Likewise.
  1060. * elf64-sparc.c: Likewise.
  1061. * elf64-x86-64.c: Likewise.
  1062. * elfxx-ia64.c: Likewise.
  1063. * elfxx-mips.c: Likewise.
  1064. * elflink.c: Likewise. Also u.elf_hash_value.
  1065. (elf_gc_propagate_vtable_entries_used): Update for h->vtable
  1066. indirection.
  1067. (elf_gc_smash_unused_vtentry_relocs): Likewise.
  1068. (bfd_elf_gc_record_vtinherit): Alloc vtable.
  1069. (bfd_elf_gc_record_vtentry): Likewise.
  1070. * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
  1071. 2004-09-17 Alan Modra <amodra@bigpond.net.au>
  1072. * Makefile.am: Run "make dep-am".
  1073. * Makefile.in: Regenerate.
  1074. * bfd-in2.h: Regenerate.
  1075. * po/SRC-POTFILES.in: Regenerate.
  1076. * po/bfd.pot: Regenerate.
  1077. 2004-09-16 Alan Modra <amodra@bigpond.net.au>
  1078. * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
  1079. with bitfields. Make "type" and "other" bitfields too.
  1080. (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
  1081. ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
  1082. ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
  1083. ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
  1084. ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
  1085. ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
  1086. ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
  1087. (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
  1088. * elf-hppa.h: Update all uses of elf_link_hash_flags.
  1089. * elf-m10300.c: Likewise.
  1090. * elf.c: Likewise.
  1091. * elf32-arm.h: Likewise.
  1092. * elf32-cris.c: Likewise.
  1093. * elf32-frv.c: Likewise.
  1094. * elf32-hppa.c: Likewise.
  1095. * elf32-i370.c: Likewise.
  1096. * elf32-i386.c: Likewise.
  1097. * elf32-m32r.c: Likewise.
  1098. * elf32-m68k.c: Likewise.
  1099. * elf32-ppc.c: Likewise.
  1100. * elf32-s390.c: Likewise.
  1101. * elf32-sh-symbian.c: Likewise.
  1102. * elf32-sh.c: Likewise.
  1103. * elf32-sh64.c: Likewise.
  1104. * elf32-sparc.c: Likewise.
  1105. * elf32-vax.c: Likewise.
  1106. * elf32-xtensa.c: Likewise.
  1107. * elf64-alpha.c: Likewise.
  1108. * elf64-hppa.c: Likewise.
  1109. * elf64-ppc.c: Likewise.
  1110. * elf64-s390.c: Likewise.
  1111. * elf64-sh64.c: Likewise.
  1112. * elf64-sparc.c: Likewise.
  1113. * elf64-x86-64.c: Likewise.
  1114. * elflink.c: Likewise.
  1115. * elfxx-ia64.c: Likewise.
  1116. * elfxx-mips.c: Likewise.
  1117. * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
  1118. * configure: Regenerate.
  1119. * aclocal.m4: Regenerate.
  1120. 2004-09-16 Alan Modra <amodra@bigpond.net.au>
  1121. * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
  1122. around uses of R_ARM_TARGET1.
  1123. (elf32_arm_check_relocs): Likewise.
  1124. 2004-09-13 Paul Brook <paul@codesourcery.com>
  1125. * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
  1126. prototype.
  1127. * bfd-in2.h: Regenerate.
  1128. * libbfd.h: Regenerate.
  1129. * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
  1130. (elf32_arm_link_hash_table_create): Set target1_is_rel.
  1131. (bfd_elf32_arm_process_before_allocation): Ditto.
  1132. (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
  1133. (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
  1134. * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
  1135. * reloc.c: Ditto.
  1136. 2004-09-10 Joel Brobecker <brobecker@gnat.com>
  1137. * hpux-core.c (thread_section_p): New function.
  1138. (hpux_core_core_file_p): Fix computation of offset in call
  1139. to bfd_seek. Create a ".reg" section from an arbitrary
  1140. ".reg/<id>" section if none was created after having read
  1141. all sections.
  1142. 2004-09-11 Andreas Schwab <schwab@suse.de>
  1143. * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
  1144. * aclocal.m4: Rebuild.
  1145. * configure: Rebuild.
  1146. 2004-09-10 Joel Brobecker <brobecker@gnat.com>
  1147. * section.c (bfd_sections_find_if): Fix parameter name in
  1148. comment to match code.
  1149. 2004-09-10 Alan Modra <amodra@bigpond.net.au>
  1150. * elf.c (assign_file_positions_except_relocs): Assign relocs
  1151. stored in a bfd section.
  1152. 2004-09-08 Hans-Peter Nilsson <hp@axis.com>
  1153. * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
  1154. h->gotplt_refcount to 0, not -1.
  1155. 2004-09-07 Hans-Peter Nilsson <hp@axis.com>
  1156. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
  1157. case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
  1158. symname.
  1159. (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
  1160. handle symbol visibility here.
  1161. 2004-09-07 Alan Modra <amodra@bigpond.net.au>
  1162. * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
  1163. (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
  1164. callers.
  1165. (ppc_stub_name): Remove trailing "+0" on stub name.
  1166. (create_linkage_sections): Create relocations for
  1167. branch lookup table when --emit-relocs as well as when --shared.
  1168. (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
  1169. relbrlt test. For --emit-stub-syms, always output a sym even when
  1170. one already exists on a plt call stub. Put stub type in the stub
  1171. symbol name.
  1172. (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
  1173. test.
  1174. (ppc64_elf_size_stubs): Count global sym stubs added. Zero
  1175. reloc_count in stub sections. Adjust relbrlt test.
  1176. (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
  1177. * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
  1178. (elf_link_input_bfd): Ignore symbol index zero relocs when checking
  1179. for relocs against discarded symbols. Fix comments.
  1180. 2004-09-06 Mark Mitchell <mark@codesourcery.com>
  1181. * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
  1182. * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
  1183. from ...
  1184. (map_sections_to_segments): ... here. Use it. Assign a file
  1185. position to the .dynamic section if it is not loadable, but part
  1186. of the PT_DYNAMIC segment.
  1187. * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
  1188. offsets, not VMAs, for the BPABI. Do not fill in the header in
  1189. the .got.plt section for the BPABI.
  1190. * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
  1191. PT_DYNAMIC segment.
  1192. (elf_backend_want_got_plt): Define to zero for Symbian OS.
  1193. 2004-09-06 Nick Clifton <nickc@redhat.com>
  1194. * elflink.c (elf_link_add_object_symbols): Set the error code to
  1195. bfd_error_wrong_format when the input format does not match the
  1196. output format.
  1197. 2004-09-06 Alan Modra <amodra@bigpond.net.au>
  1198. * elf64-ppc.c (is_ppc64_target): New function, extracted from..
  1199. (ppc64_elf_check_directives): ..here.
  1200. (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
  1201. before accessing ppc64_elf_tdata.
  1202. (ppc64_elf_finish_dynamic_sections): And here too.
  1203. 2004-09-04 Alan Modra <amodra@bigpond.net.au>
  1204. * bfd.c (_bfd_default_error_handler): Correct loop exit.
  1205. 2004-09-03 Mark Mitchell <mark@codesourcery.com>
  1206. * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
  1207. * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
  1208. (bfd_elf32_littlearm_symbian_vec): Likewise.
  1209. * configure: Regenerated.
  1210. * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
  1211. * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
  1212. (PLT_ENTRY_SIZE): Likewise.
  1213. (bfd_vma_elf32_arm_symbian_plt_entry): New
  1214. variable.
  1215. (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
  1216. and symbian_p.
  1217. (create_got_section): Don't create sections when generating BPABI
  1218. objects.
  1219. (elf32_arm_create_dynamic_sections): Tidy.
  1220. (elf32_arm_link_hash_table_create): Set plt_header_size,
  1221. plt_entry_size, and symbian_p.
  1222. (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
  1223. generating BPABI objects.
  1224. (allocate_dynrelocs): Use htab->plt_header_size, not
  1225. PLT_HEADER_SIZE. Do not add to .got.plt when
  1226. generating BPABI objects.
  1227. (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
  1228. * elfarm-nabi.c: Add SymbianOS target vectors.
  1229. * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
  1230. (_bfd_elf_link_create_dynamic_sections): Likewise.
  1231. * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
  1232. (elfNN_bed): Use it.
  1233. * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
  1234. (bfd_elf32_littlearm_symbian_vec): Likewise.
  1235. (_bfd_target_vector): Add them.
  1236. 2004-09-03 Nick Clifton <nickc@redhat.com>
  1237. PR 360
  1238. * coffcode.h (handle_COMDAT): Replace abort with an warning
  1239. message and allow the scan to continue.
  1240. 2004-09-02 Alan Modra <amodra@bigpond.net.au>
  1241. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
  1242. in when reading relocs, not our sorted syms. Remove unnecessary
  1243. var.
  1244. 2004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
  1245. * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
  1246. 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
  1247. * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
  1248. Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
  1249. replace uses of *_alias with *_noncanonical.
  1250. * aclocal.m4: Rebuild with aclocal 1.4p6.
  1251. * Makefile.in: Rebuild with automake 1.4p6.
  1252. * doc/Makefile.in: Rebuild with automake 1.4p6.
  1253. * configure.in: Autoupdate with autoupdate 2.59.
  1254. * config.in: Regenerate with autoheader 2.59.
  1255. * configure: Regnerate with autoconf 2.59.
  1256. 2004-08-28 Alan Modra <amodra@bigpond.net.au>
  1257. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
  1258. symbol pointer arrays before modifying.
  1259. 2004-08-28 Alan Modra <amodra@bigpond.net.au>
  1260. * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
  1261. * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
  1262. * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
  1263. * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
  1264. * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
  1265. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
  1266. Use both symbol tables on non-relocatable objects. Use a common
  1267. error exit. Fix "mid" warning.
  1268. * libbfd.h: Regenerate.
  1269. * bfd-in2.h: Regenerate.
  1270. 2004-08-28 Alan Modra <amodra@bigpond.net.au>
  1271. * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
  1272. object file.
  1273. (struct sfpr_def_parms): Save some space.
  1274. (sfpr_define): Here too.
  1275. * elf64-ppc.c (compare_symbols): Put section syms first.
  1276. (sym_exists_at): New function.
  1277. (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
  1278. points only for relocatable files. Use .opd section contents
  1279. otherwise. Generally clean up the code.
  1280. 2004-08-27 Alan Modra <amodra@bigpond.net.au>
  1281. * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
  1282. LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
  1283. (struct sfpr_def_parms): New.
  1284. (sfpr_define): New function.
  1285. (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
  1286. (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
  1287. (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
  1288. (savefpr1_tail, restfpr1_tail): New functions.
  1289. (savevr, savevr_tail, restvr, restvr_tail): New functions.
  1290. (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
  1291. (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
  1292. code. Define all ABI mandated _save and _rest functions.
  1293. 2004-08-26 Paul Brook <paul@codesourcery.com>
  1294. * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
  1295. 2004-08-26 Alan Modra <amodra@bigpond.net.au>
  1296. * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
  1297. TRUE or FALSE.
  1298. 2004-08-26 Alan Modra <amodra@bigpond.net.au>
  1299. * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
  1300. that pcrel correction is applied for R_386_PC32.
  1301. 2004-08-25 Alan Modra <amodra@bigpond.net.au>
  1302. * elf32-i386.c (elf_i386_relocate_section): Zero section contents
  1303. for R_386_32 and R_386_PC32 relocs against symbols defined in
  1304. discarded sections.
  1305. 2004-08-25 Dmitry Diky <diwil@spec.ru>
  1306. * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
  1307. Add new relocations.
  1308. * bfd-in2.h: Regenerate.
  1309. * libbfd.h: Regenerate.
  1310. * elf32-msp430.c: Clean-up code.
  1311. (elf_msp430_howto_table): Add new relocation entries.
  1312. (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
  1313. (msp430_elf_relax_section): New function.
  1314. (msp430_elf_relax_delete_bytes): New function.
  1315. (msp430_elf_symbol_address_p): New function.
  1316. 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  1317. * elf32-m32r.c (m32r_elf_relocate_section): Handle
  1318. R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
  1319. 2004-08-20 Daniel Jacobowitz <dan@debian.org>
  1320. * elflink.c (_bfd_elf_section_already_linked): Handle
  1321. SEC_LINK_DUPLICATES_SAME_CONTENTS.
  1322. 2004-08-19 Mark Mitchell <mark@codesourcery.com>
  1323. * config.bfd (arm*-*-symbianelf*): New target.
  1324. (arm*-*-eabi*): Likewise.
  1325. 2004-08-19 Alan Modra <amodra@bigpond.net.au>
  1326. * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
  1327. "struct ppc_link_hash_entry *".
  1328. (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
  1329. to satisfy RELOC_FOR_GLOBAL_SYMBOL.
  1330. 2004-08-19 Jakub Jelinek <jakub@redhat.com>
  1331. * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
  1332. entries (where fd_aux overlaps next entry's fd_func).
  1333. Add non_overlapping argument, use it.
  1334. (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
  1335. ppc64_elf_size_stubs, ppc64_elf_relocate_section,
  1336. ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
  1337. as indexes into opd_sym_map/opd_adjust array.
  1338. * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
  1339. 2004-08-18 Alan Modra <amodra@bigpond.net.au>
  1340. * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
  1341. if we can look up their function descriptor in a regular file.
  1342. 2004-08-18 Nick Clifton <nickc@redhat.com>
  1343. PR 324
  1344. * cofflink.c (coff_link_add_symbols): Check that the comdat
  1345. pointer in the coff_section_data structure has been initialised
  1346. before using it.
  1347. 2004-08-18 Alan Modra <amodra@bigpond.net.au>
  1348. PR 338
  1349. * elflink.c (bfd_elf_record_link_assignment): Add comment about
  1350. changing bfd_link_hash_undefined to bfd_link_hash_new.
  1351. 2004-08-17 Jakub Jelinek <jakub@redhat.com>
  1352. * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
  1353. if not yet defined.
  1354. * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
  1355. (synthetic_opd, synthetic_relocatable): New variables.
  1356. (compare_symbols, compare_relocs): New helper routines.
  1357. (ppc64_elf_get_synthetic_symtab): New function.
  1358. * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
  1359. to relsyms.
  1360. * bfd-in2.h: Regenerated.
  1361. * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
  1362. to relsyms. Return 0 if abfd is relocatable.
  1363. 2004-08-17 Alan Modra <amodra@bigpond.net.au>
  1364. * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
  1365. 2004-08-17 Nick Clifton <nickc@redhat.com>
  1366. * (is_arm_mapping_symbol_name): New function - return true
  1367. when a symbol name matches the requirements for an ARM mapping
  1368. symbol name.
  1369. (arm_elf_find_function): New function based on
  1370. elf_find_function in elf.c but skipping ARM mapping symbols
  1371. and including thumb function symbols.
  1372. (elf32_arm_find_nearest_line): Use arm_elf_find_function.
  1373. (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
  1374. 2004-08-17 Alan Modra <amodra@bigpond.net.au>
  1375. * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
  1376. (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
  1377. (ppc64_elf_brtaken_reloc): Here too.
  1378. 2004-08-17 Alan Modra <amodra@bigpond.net.au>
  1379. * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
  1380. symbol visibility.
  1381. (ppc64_elf_check_directives): Check that we have the right hash
  1382. table before proceeding.
  1383. 2004-08-17 Alan Modra <amodra@bigpond.net.au>
  1384. * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
  1385. (adjust_opd_syms): Attach opd syms for deleted entries to one of
  1386. the sections that will be discarded.
  1387. 2004-08-16 Alan Modra <amodra@bigpond.net.au>
  1388. * elflink.c (elf_section_complain_discarded): Ignore .fixup.
  1389. 2004-08-16 Alan Modra <amodra@bigpond.net.au>
  1390. * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
  1391. free space available.
  1392. 2004-08-16 Alan Modra <amodra@bigpond.net.au>
  1393. * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
  1394. occurrences with bfd_byte * thoughout file.
  1395. * coff-rs6000.c (do_shared_object_padding): Warning fix.
  1396. (xcoff_write_armap_big): Likewise.
  1397. (xcoff_write_archive_contents_old): Likewise.
  1398. (xcoff_write_archive_contents_big): Likewise.
  1399. * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
  1400. 2004-08-13 Nick Clifton <nickc@redhat.com>
  1401. * elf32-arm.h: Convert to ISO C90.
  1402. 2004-08-13 Alan Modra <amodra@bigpond.net.au>
  1403. PR 293
  1404. * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
  1405. zero the plt field.
  1406. 2004-08-13 Alan Modra <amodra@bigpond.net.au>
  1407. * bfd.c (_bfd_default_error_handler): Handle %A and %B.
  1408. (bfd_archive_filename, bfd_get_section_ident): Delete.
  1409. * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
  1410. bfd_archive_filename.
  1411. * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
  1412. to warn about symbols in discarded sections. Use _bfd_error_handler.
  1413. * aout-adobe.c (aout_adobe_callback): See below.
  1414. * aout-cris.c (swap_ext_reloc_in): ..
  1415. * coff-arm.c (find_thumb_glue, find_arm_glue,
  1416. coff_arm_relocate_section, bfd_arm_process_before_allocation,
  1417. coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
  1418. coff_arm_copy_private_bfd_data): ..
  1419. * coff-i860.c (i860_reloc_processing): ..
  1420. * coff-mcore.c (mcore_coff_unsupported_reloc,
  1421. coff_mcore_relocate_section): ..
  1422. * coff-ppc.c (coff_ppc_relocate_section): ..
  1423. * coff-rs6000.c (xcoff_create_csect_from_smclas
  1424. * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
  1425. sh_swap_insns, sh_relocate_section): ..
  1426. * coff-tic54x.c (tic54x_reloc_processing): ..
  1427. * coff-tic80.c (coff_tic80_relocate_section): ..
  1428. * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
  1429. * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
  1430. coff_slurp_symbol_table, coff_classify_symbol,
  1431. coff_slurp_reloc_table): ..
  1432. * coffgen.c (_bfd_coff_read_string_table): ..
  1433. * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
  1434. _bfd_coff_generic_relocate_section): ..
  1435. * cpu-arm.c (bfd_arm_merge_machines): ..
  1436. * cpu-sh.c (sh_merge_bfd_arch): ..
  1437. * elf-hppa.h (elf_hppa_relocate_section): ..
  1438. * elf.c (bfd_elf_string_from_elf_section, setup_group,
  1439. _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
  1440. assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
  1441. copy_private_bfd_data, _bfd_elf_validate_reloc): ..
  1442. * elf32-arm.h (find_thumb_glue, find_arm_glue,
  1443. bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
  1444. elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
  1445. elf32_arm_relocate_section, elf32_arm_set_private_flags,
  1446. elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
  1447. * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
  1448. cris_elf_merge_private_bfd_data
  1449. * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
  1450. * elf32-gen.c (elf32_generic_link_add_symbols): ..
  1451. * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
  1452. elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
  1453. elf32_hppa_relocate_section): ..
  1454. * elf32-i370.c (i370_elf_merge_private_bfd_data,
  1455. i370_elf_check_relocs, i370_elf_relocate_section): ..
  1456. * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
  1457. elf_i386_relocate_section): ..
  1458. * elf32-m32r.c (m32r_elf_relocate_section,
  1459. m32r_elf_merge_private_bfd_data): ..
  1460. * elf32-m68hc1x.c (m68hc12_add_stub,
  1461. _bfd_m68hc11_elf_merge_private_bfd_data): ..
  1462. * elf32-m68k.c (elf_m68k_relocate_section): ..
  1463. * elf32-mcore.c (mcore_elf_unsupported_reloc,
  1464. mcore_elf_relocate_section): ..
  1465. * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
  1466. ppc_elf_check_relocs, ppc_elf_relocate_section,
  1467. ppc_elf_begin_write_processing): ..
  1468. * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
  1469. elf_s390_relocate_section): ..
  1470. * elf32-sh-symbian.c (sh_symbian_import_as,
  1471. sh_symbian_process_embedded_commands,
  1472. sh_symbian_relocate_section): ..
  1473. * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
  1474. sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
  1475. sh_elf_merge_private_data): ..
  1476. * elf32-sparc.c (elf32_sparc_check_relocs,
  1477. elf32_sparc_relocate_section,
  1478. elf32_sparc_merge_private_bfd_data): ..
  1479. * elf32-v850.c (v850_elf_check_relocs,
  1480. v850_elf_merge_private_bfd_data): ..
  1481. * elf32-xtensa.c (elf_xtensa_check_relocs,
  1482. elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
  1483. * elf64-alpha.c (elf64_alpha_relax_with_lituse,
  1484. elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
  1485. elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
  1486. * elf64-gen.c (elf64_generic_link_add_symbols): ..
  1487. * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
  1488. ppc64_elf_check_relocs, ppc64_elf_edit_opd,
  1489. ppc64_elf_relocate_section): ..
  1490. * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
  1491. elf_s390_relocate_section): ..
  1492. * elf64-sh64.c (sh_elf64_relocate_section): ..
  1493. * elf64-sparc.c (sparc64_elf_check_relocs,
  1494. sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
  1495. sparc64_elf_merge_private_bfd_data): ..
  1496. * elf64-x86-64.c (elf64_x86_64_check_relocs,
  1497. elf64_x86_64_relocate_section): ..
  1498. * elflink.c (_bfd_elf_add_default_symbol,
  1499. _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
  1500. _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
  1501. bfd_elf_size_dynamic_sections, elf_link_output_extsym,
  1502. elf_get_linked_section_vma, elf_fixup_link_order,
  1503. bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
  1504. bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
  1505. * elfxx-ia64.c (elfNN_ia64_relax_section,
  1506. elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
  1507. * elfxx-mips.c (mips_elf_perform_relocation,
  1508. _bfd_mips_elf_check_relocs,
  1509. _bfd_mips_elf_merge_private_bfd_data): ..
  1510. * ieee.c (ieee_slurp_external_symbols): ..
  1511. * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
  1512. * libbfd.c (_bfd_generic_verify_endian_match): ..
  1513. * linker.c (_bfd_generic_link_add_one_symbol,
  1514. _bfd_generic_section_already_linked): ..
  1515. * pdp11.c (translate_to_native_sym_flags): ..
  1516. * pe-mips.c (coff_pe_mips_relocate_section): ..
  1517. * peicode.h (pe_ILF_build_a_bfd): ..
  1518. * srec.c (srec_bad_byte): ..
  1519. * stabs.c (_bfd_link_section_stabs): ..
  1520. * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
  1521. Replace all uses of bfd_archive_filename and bfd_get_section_ident
  1522. with corresponding %B and %A in _bfd_error_handler format string.
  1523. Replace occurrences of "fprintf (stderr," with _bfd_error_handler
  1524. calls to use %A and %B. Fix "against symbol .. from section" and
  1525. similar error messages. Combine multiple _bfd_error_handler calls
  1526. where they were separated due to bfd_archive_filename deficiencies.
  1527. * bfd-in2.h: Regenerate.
  1528. 2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
  1529. * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
  1530. relocation.
  1531. 2004-08-10 Alan Modra <amodra@bigpond.net.au>
  1532. * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
  1533. (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
  1534. Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
  1535. Add twiddled_syms.
  1536. (link_hash_newfunc): Init was_undefined.
  1537. (add_symbol_adjust): Don't set undefined dot symbols to defweak;
  1538. Use undefweak instead.
  1539. (ppc64_elf_check_directives): Fix undefs chain.
  1540. (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
  1541. references.
  1542. (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
  1543. (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
  1544. * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
  1545. 2004-08-09 Jakub Jelinek <jakub@redhat.com>
  1546. * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
  1547. error, test input_section flags rather than sec.
  1548. 2004-08-09 Alan Modra <amodra@bigpond.net.au>
  1549. * elf-bfd.h (struct elf_backend_data): Add
  1550. elf_backend_archive_symbol_lookup.
  1551. (_bfd_elf_archive_symbol_lookup): Declare.
  1552. * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
  1553. (elf_link_add_archive_symbols): ..extracted from here. Call the
  1554. backend version.
  1555. * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
  1556. (elfNN_bed): Init new field.
  1557. * elf64-ppc.c (elf_backend_check_directives): Define.
  1558. (elf_backend_archive_symbol_lookup): Define.
  1559. (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
  1560. a ppc_link_hash_entry pointer.
  1561. (get_fdh): Move.
  1562. (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
  1563. (add_symbol_adjust, ppc64_elf_check_directives): New functions.
  1564. (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
  1565. ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
  1566. ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
  1567. ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
  1568. ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
  1569. descriptor symbols.
  1570. 2004-08-09 Alan Modra <amodra@bigpond.net.au>
  1571. * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
  1572. (ppc64_elf_add_symbol_hook): Test for NULL section.
  1573. (get_sym_h): Formatting.
  1574. (ppc64_elf_size_stubs): Include reloc addend in value stored as
  1575. stub target_value.
  1576. * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
  1577. long branch stubs with code handling plt and r2off branch stubs.
  1578. 2004-08-09 Alan Modra <amodra@bigpond.net.au>
  1579. * elf-bfd.h (_bfd_elf_gc_mark): Declare.
  1580. * elflink.c (elf_link_input_bfd): Formatting.
  1581. (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
  1582. all callers.
  1583. * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
  1584. (link_hash_newfunc): Don't set it.
  1585. (ppc64_elf_copy_indirect_symbol): Nor copy it.
  1586. (ppc64_elf_mark_entry_syms): Delete.
  1587. (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
  1588. sections. Use get_opd_info.
  1589. * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
  1590. 2004-08-09 Alan Modra <amodra@bigpond.net.au>
  1591. * elf64-ppc.c (adjust_opd_syms): Fix merge error.
  1592. * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
  1593. (func_desc_adjust): Don't set have_undefweak.
  1594. (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
  1595. (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
  1596. * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
  1597. "struct ppc_link_hash_entry *". Adjust all references.
  1598. (ppc64_elf_hide_symbol): Correct a comment.
  1599. * elf64-ppc.c (get_opd_info): New function.
  1600. (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
  1601. (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
  1602. before calling get_fdh. Test fdh rather than h before dereferencing
  1603. fdh. Mark removed symbols in opd_adjust.
  1604. (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
  1605. (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
  1606. opd symbols.
  1607. (ppc64_elf_output_symbol_hook): Likewise.
  1608. 2004-08-06 Paul Brook <paul@codesourcery.com>
  1609. * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
  1610. (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
  1611. BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
  1612. * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
  1613. and BFD_RELOC_ARM_SBREL32.
  1614. * bfd-in2.h, bbfd.h: Regenerate.
  1615. 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1616. * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
  1617. the dynamic link symbol actually in use.
  1618. 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
  1619. * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
  1620. 2004-07-31 Joel Brobecker <brobecker@gnat.com>
  1621. Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1622. * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
  1623. SHN_MIPS_TEXT and SHN_MIPS_DATA.
  1624. 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
  1625. Nick Clifton <nickc@redhat.com>
  1626. PR 290
  1627. * bfd.c (_bfd_default_error_handler): Make it global.
  1628. * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
  1629. * elf.c (assign_section_numbers): Cope gracefully with sections
  1630. which have SHF_LINK_ORDER set but no sh_link set up.
  1631. * elflink.c (elf_get_linked_section_vma): Likewise.
  1632. * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
  1633. it to NULL.
  1634. * elfxx-target.h (elf_backend_link_order_error_handler): New.
  1635. Set it to _bfd_default_error_handler.
  1636. (elfNN_bed): Add elf_backend_link_order_error_handler.
  1637. * libbfd-in.h (_bfd_default_error_handler): New.
  1638. * libbfd.h: Regenerated.
  1639. 2004-07-30 Jakub Jelinek <jakub@redhat.com>
  1640. * archures.c (bfd_mach_sparc_64bit_p): Define.
  1641. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
  1642. * bfd-in2.h: Rebuilt.
  1643. 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
  1644. Introduce SH2a support.
  1645. 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
  1646. * archures.c (bfd_mach_sh2a_nofpu): New.
  1647. * bfd-in2.h: Rebuilt.
  1648. * cpu-sh.c (SH2A_NOFPU_NEXT): New.
  1649. (arch_info_struct): Add sh2a_nofpu.
  1650. * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
  1651. 2003-12-29 DJ Delorie <dj@redhat.com>
  1652. * reloc.c: Add relocs for sh2a.
  1653. * bfd-in2.h: Regenerate.
  1654. * libbfd.hh: Regenerate.
  1655. 2003-12-01 Michael Snyder <msnyder@redhat.com>
  1656. * archures.c (bfd_mach_sh2a): New.
  1657. * bfd-in2.h: Rebuilt.
  1658. * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
  1659. (SH2A_NEXT): New.
  1660. (arch_info_struct): Add sh2a.
  1661. * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
  1662. 2004-07-28 Nick Clifton <nickc@redhat.com>
  1663. John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1664. PR 273
  1665. * som.c (setup_sections): Improve estimation of space sizes in
  1666. relocatable objects.
  1667. 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
  1668. * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
  1669. bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
  1670. to targ_selvecs.
  1671. * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
  1672. * configure: Regenerate.
  1673. * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
  1674. case that accepts OSABI=NetBSD and OSABI=SysV.
  1675. (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
  1676. the base of .got or .data (if .got does not exist).
  1677. (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
  1678. set OSABI=NetBSD.
  1679. (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
  1680. (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
  1681. * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
  1682. (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
  1683. 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
  1684. PR 161/251
  1685. * elf-bfd.h (bfd_elf_section_data): Add sec_group.
  1686. (elf_sec_group): Defined.
  1687. (bfd_elf_match_symbols_in_sections): New prototype.
  1688. (_bfd_elf_setup_group_pointers): Likewise.
  1689. * elf.c (bfd_elf_discard_group): Abort.
  1690. (bfd_elf_set_group_contents): Also include relocation sections.
  1691. Remove zero-fill for ld -r.
  1692. (_bfd_elf_setup_group_pointers): New function.
  1693. (elf_sort_elf_symbol): Likewise.
  1694. (elf_sym_name_compare): Likewise.
  1695. (bfd_elf_match_symbols_in_sections): Likewise.
  1696. * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
  1697. * elflink.c (match_group_member): New.
  1698. (elf_link_input_bfd): Check group member for discarded section.
  1699. (try_match_symbols_in_sections): New function.
  1700. (already_linked): Likewise.
  1701. (_bfd_elf_section_already_linked): Support mixing comdat group
  1702. and linkonce section.
  1703. * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
  1704. * linker.c (bfd_section_already_linked_table_traverse): New.
  1705. * libbfd.h: Regenerated.
  1706. 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
  1707. * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
  1708. BFD_RELOC_CRX_SWITCH32.
  1709. * bfd-in2.h: Regenerate.
  1710. * libbfd.h: Regenerate.
  1711. * elf32-crx.c: Support relocation/relaxation of
  1712. BFD_RELOC_CRX_SWITCH* types.
  1713. 2004-07-27 Alan Modra <amodra@bigpond.net.au>
  1714. * elf64-ppc.c: Correct "Linker stubs" comment.
  1715. 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
  1716. * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
  1717. linked-to section.
  1718. (elf_linked_to_section): New.
  1719. * elf.c (assign_section_numbers): Set up sh_link for
  1720. SHF_LINK_ORDER.
  1721. * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
  1722. to sh_link for SHT_IA_64_UNWIND sections.
  1723. 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
  1724. * elflink.c (elf_fixup_link_order): Add _() to error message.
  1725. 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
  1726. * elflink.c (elf_fixup_link_order): Issue a warning and flag
  1727. an error if failed.
  1728. 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
  1729. * aout-adobe.c (aout_32_section_already_linked): Defined.
  1730. * aout-target.h (MY_section_already_linked): Likewise.
  1731. * aout-tic30.c (MY_section_already_linked): Likewise.
  1732. * binary.c (binary_section_already_linked): Likewise.
  1733. * bout.c (b_out_section_already_linked): Likewise.
  1734. * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
  1735. * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
  1736. * coffcode.h (coff_section_already_linked): Likewise.
  1737. * i386msdos.c (msdos_section_already_linked): Likewise.
  1738. * i386os9k.c (os9k_section_already_linked): Likewise.
  1739. * ieee.c (ieee_section_already_linked): Likewise.
  1740. * ihex.c (ihex_section_already_linked): Likewise.
  1741. * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
  1742. * mmo.c (mmo_section_already_linked): Likewise.
  1743. * nlm-target.h (nlm_section_already_linked): Likewise.
  1744. * oasys.c (oasys_section_already_linked): Likewise.
  1745. * pef.c (bfd_pef_section_already_linked): Likewise.
  1746. * ppcboot.c (ppcboot_section_already_linked): Likewise.
  1747. * som.c (som_bfd_discard_group): Likewise.
  1748. * srec.c (srec_section_already_linked): Likewise.
  1749. * tekhex.c (tekhex_section_already_linked): Likewise.
  1750. * versados.c (versados_section_already_linked): Likewise.
  1751. * vms.c (vms_section_already_linked): Likewise.
  1752. * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
  1753. * xsym.c (bfd_sym_section_already_linked): Likewise.
  1754. * bfd-in.h (bfd_section_already_linked_table_init): New.
  1755. (bfd_section_already_linked_table_free): Likewise.
  1756. * coff-rs6000.c (rs6000coff_vec): Add
  1757. _bfd_generic_section_already_linked.
  1758. (pmac_xcoff_vec): Likewise.
  1759. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  1760. (aix5coff64_vec): Likewise.
  1761. * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
  1762. * elflink.c (_bfd_elf_section_already_linked): New function.
  1763. * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
  1764. * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
  1765. (_bfd_generic_section_already_linked): New.
  1766. (bfd_section_already_linked_hash_entry): Likewise.
  1767. (bfd_section_already_linked): Likewise.
  1768. (bfd_section_already_linked_table_lookup): Likewise.
  1769. (bfd_section_already_linked_table_insert): Likewise.
  1770. * linker.c (bfd_section_already_linked): New.
  1771. (_bfd_section_already_linked_table): Likewise.
  1772. (bfd_section_already_linked_table_lookup): Likewise.
  1773. (bfd_section_already_linked_table_insert): Likewise.
  1774. (already_linked_newfunc): Likewise.
  1775. (bfd_section_already_linked_table_init): Likewise.
  1776. (bfd_section_already_linked_table_free): Likewise.
  1777. (_bfd_generic_section_already_linked): Likewise.
  1778. * section.c (bfd_section): Remove comdat.
  1779. (bfd_comdat_info): Moved to ...
  1780. * bfd-in.h (coff_comdat_info): Here.
  1781. (bfd_coff_get_comdat_section): New.
  1782. * coffgen.c (bfd_coff_get_comdat_section): Likewise.
  1783. * libcoff-in.h (coff_section_tdata): Add comdat.
  1784. * coffcode.h (handle_COMDAT): Updated.
  1785. * cofflink.c (coff_link_add_symbols): Likewise.
  1786. * ecoff.c (bfd_debug_section): Likewise.
  1787. * targets.c (bfd_target): Add _section_already_linked.
  1788. (BFD_JUMP_TABLE_LINK): Updated.
  1789. * bfd-in2.h: Regenerated.
  1790. * libbfd.h: Likewise.
  1791. * libcoff.h: Likewise.
  1792. 2003-07-21 Paul Brook <paul@codesourcery.com>
  1793. * elflink.c (elf_get_linked_section_vma, compare_link_order,
  1794. elf_fixup_link_order): New functions.
  1795. (bfd_elf_final_link): Call elf_fixup_link_order.
  1796. 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
  1797. * elf-bfd.h (ELF_COMMON_DEF_P): New.
  1798. * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
  1799. common definitions.
  1800. * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
  1801. _bfd_elf_symbol_refs_local_p.
  1802. * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
  1803. symbols.
  1804. 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
  1805. * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
  1806. DYN_NO_NEEDED.
  1807. (bfd_elf_get_dyn_lib_class): New prototype.
  1808. * elf.c (bfd_elf_get_dyn_lib_class): New function.
  1809. * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
  1810. DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
  1811. entry is needed. Issue an error if a DT_NEEDED entry is needed
  1812. for a file marked DYN_NO_NEEDED.
  1813. (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
  1814. for DT_NEEDED tags.
  1815. * bfd-in2.h: Regenerated.
  1816. 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1817. * elflink.c (elf_section_complain_discarded): Don't complain in
  1818. .PARISC.unwind.
  1819. 2004-07-10 James E Wilson <wilson@specifixinc.com>
  1820. * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
  1821. (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
  1822. (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
  1823. elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
  1824. Fix callers.
  1825. (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
  1826. bfd_put_64 to bfd_putl64.
  1827. (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
  1828. 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
  1829. PR 240
  1830. * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
  1831. .init/.fini sections when trying to relax it.
  1832. 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
  1833. * elf.c (assign_file_positions_for_segments): Make sure the
  1834. .dynamic section is the first section in the PT_DYNAMIC segment.
  1835. 2004-07-09 Nick Clifton <nickc@redhat.com>
  1836. * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
  1837. * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
  1838. sh_elf_get_flags_from_mach functions so that they do not conflict
  1839. when this target is built with other sh-elf targets.
  1840. * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
  1841. suppression of this function.
  1842. (sh_elf_find_flags): Likewise.
  1843. 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
  1844. * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
  1845. (ALL_MACHINES_CFILES): Add cpu-crx.c.
  1846. (BFD32_BACKENDS): Add elf32-crx.lo.
  1847. (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
  1848. (cpu-crx.lo): New target.
  1849. (elf32-crx.lo): New target.
  1850. * Makefile.in: Regenerate.
  1851. * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
  1852. (bfd_archures_list): Add bfd_crx_arch.
  1853. * bfd-in2.h: Regenerate.
  1854. * config.bfd: Handle crx-*-elf*, crx*.
  1855. * configure.in: Handle bfd_elf32_crx_vec.
  1856. * configure: Regenerate.
  1857. * cpu-crx.c: New file.
  1858. * elf32-crx.c: Likewise.
  1859. * libbfd.h: Regenerate.
  1860. * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
  1861. BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
  1862. BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
  1863. BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
  1864. BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
  1865. BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
  1866. * targets.c (bfd_elf32_crx_vec): Declare.
  1867. (bfd_target_vector): Add bfd_elf32_crx_vec.
  1868. 2004-07-06 Nick Clifton <nickc@redhat.com>
  1869. * config.bfd: Add sh-symbian-elf target.
  1870. * configure.in: Add bfd_elf32_shl_symbian_vec.
  1871. * configure: Regenerate.
  1872. * elf-bfd.h (struct elf_backend_data): Add new field
  1873. 'check_directives'.
  1874. * elflink.c (elf_link_add_object_symbols): Invoke the
  1875. check_directives function, if defined.
  1876. * elfxx-target.h: Provide a default, NULL definition for
  1877. check_directives.
  1878. * targets.c: Add bfd_elf32_shl_symbian_vec.
  1879. * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
  1880. definition.
  1881. (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
  1882. * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
  1883. (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
  1884. not already been defined.
  1885. * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
  1886. * sh-symbian.c: New file. Provide functions to support the
  1887. * sh-symbian-elf target.
  1888. * Makefile.am: Add elf32-sh-symbian.c
  1889. * Makefile.in: Regenerate.
  1890. 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
  1891. * elf32-sh.c: Include ../opcodes/sh-opc.h.
  1892. * Makefile.am: Ran make dep-am.
  1893. * Makefile.in: Ran make dep-in.
  1894. 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
  1895. * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
  1896. externals properly.
  1897. 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
  1898. * config.bfd: Add want64 to configuration target s390-*-linux*.
  1899. 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
  1900. * bfd.c (bfd_get_section_ident): New.
  1901. * elflink.c (elf_link_read_relocs_from_section): Call
  1902. bfd_get_section_ident to identify the section when reporting
  1903. error.
  1904. (_bfd_elf_link_output_relocs): Likewise.
  1905. (elf_link_output_extsym): Likewise.
  1906. (elf_link_input_bfd): Likewise.
  1907. (bfd_elf_gc_record_vtinherit): Likewise.
  1908. * bfd-in2.h: Regenerated.
  1909. 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
  1910. Nick Clifton <nickc@redhat.com>
  1911. PR 204
  1912. * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
  1913. of section symbols to mips_elf_sort_hash_table ().
  1914. 2004-07-01 Alan Modra <amodra@bigpond.net.au>
  1915. * elflink.c (elf_section_ignore_discarded_relocs): Revert last
  1916. change. Comment.
  1917. (elf_section_complain_discarded): New function. Handle
  1918. .gcc_except_table too.
  1919. (elf_link_input_bfd): Rewrite handling of relocs against symbols
  1920. in discarded sections.
  1921. * elf-bfd.h (elf_discarded_section): Protect macro arg.
  1922. 2004-06-30 James E Wilson <wilson@specifixinc.com>
  1923. * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
  1924. to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
  1925. 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
  1926. PR 233
  1927. * elflink.c (elf_link_input_bfd): Issue an error for non-debug
  1928. local references to discarded sections and report their
  1929. locations.
  1930. 2004-06-30 Alan Modra <amodra@bigpond.net.au>
  1931. * elflink.c (elf_section_ignore_discarded_relocs): Don't test
  1932. sec_info_type, test section name instead.
  1933. 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
  1934. PR 240
  1935. * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
  1936. in .init/.fini sections.
  1937. 2004-06-29 Bob Wilson <bob.wilson@acm.org>
  1938. * elf32-xtensa.c (elf_xtensa_relocate_section): Use
  1939. bfd_get_section_limit.
  1940. 2004-06-29 Bob Wilson <bob.wilson@acm.org>
  1941. * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
  1942. output section size.
  1943. 2004-06-29 Alan Modra <amodra@bigpond.net.au>
  1944. * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
  1945. rawsize.
  1946. (mmix_elf_perform_relocation): Adjust for above change.
  1947. (mmix_elf_relocate_section): Likewise.
  1948. (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
  1949. (mmix_elf_get_section_contents): Delete.
  1950. (bfd_elf64_get_section_contents): Delete.
  1951. (mmix_elf_relocate_section): Zero stub area.
  1952. * linker.c (default_indirect_link_order): Alloc max of section size
  1953. and rawsize.
  1954. * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
  1955. * section.c (bfd_malloc_and_get_section): Likewise.
  1956. (struct bfd_section): Update rawsize comment.
  1957. * bfd-in2.h: Regenerate.
  1958. * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
  1959. 2004-06-29 Alan Modra <amodra@bigpond.net.au>
  1960. * bfd-in.h (bfd_get_section_limit): Define.
  1961. * reloc.c (bfd_perform_relocation, bfd_install_relocation)
  1962. (_bfd_final_link_relocate): Use bfd_get_section_limit.
  1963. * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
  1964. * coff-arm.c (coff_arm_relocate_section): Likewise.
  1965. * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
  1966. * cpu-ns32k.c (do_ns32k_reloc): Likewise.
  1967. (bfd_ns32k_final_link_relocate): Likewise.
  1968. * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
  1969. * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
  1970. * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
  1971. (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
  1972. * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
  1973. (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
  1974. * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
  1975. * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
  1976. * elf32-or32.c (or32_elf_consth_reloc): Likewise.
  1977. * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
  1978. * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
  1979. * elf32-sh.c (sh_elf_reloc_loop): Likewise.
  1980. * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
  1981. (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
  1982. * elf32-v850.c (v850_elf_reloc): Likewise.
  1983. * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
  1984. * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
  1985. * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
  1986. * elf64-mips.c (mips_elf64_gprel32_reloc)
  1987. (mips16_gprel_reloc): Likewise.
  1988. * elf64-mmix.c (mmix_elf_reloc): Likewise.
  1989. * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
  1990. * elf64-sparc.c (init_insn_reloc): Likewise.
  1991. * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
  1992. * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
  1993. (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
  1994. (_bfd_mips_elf_generic_reloc): Likewise.
  1995. * bfd-in2.h: Regenerate.
  1996. 2004-06-28 Alan Modra <amodra@bigpond.net.au>
  1997. * bfd-in.h (struct stab_info): Move from stabs.c.
  1998. * stabs.c (struct stab_link_includes_table): Delete.
  1999. (stab_link_includes_lookup): Delete.
  2000. (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
  2001. level of indirection from sinfo parm.
  2002. (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
  2003. stabstr section. Adjust hash table accesses.
  2004. * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
  2005. alloc. Adjust stab_info test.
  2006. * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
  2007. (_bfd_coff_final_link): Adjust stab_info test.
  2008. (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
  2009. * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
  2010. in place.
  2011. * libcoff-in.h (struct coff_link_hash_table): Likewise.
  2012. * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
  2013. * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
  2014. stabstr section. Adjust stab_info test.
  2015. * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
  2016. (_bfd_write_stab_strings): Adjust prototypes.
  2017. * libbfd.h: Regenerate.
  2018. * libcoff.h: Regenerate.
  2019. * bfd-in2.h: Regenerate.
  2020. 2004-06-27 Mark Kettenis <kettenis@gnu.org>
  2021. From Miod Vallat <miod@online.fr>:
  2022. * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
  2023. 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
  2024. * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
  2025. (struct elf32_mn10300_link_hash_entry): Remove
  2026. pcrel_relocs_copied.
  2027. (mn10300_elf_check_relocs): Only reserve dynamic relocations for
  2028. R_MN10300_32. Don't adjust pcrel_relocs_copied.
  2029. (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
  2030. and gotoff relocations if the symbol doesn't bind locally. Use
  2031. _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
  2032. relocation for PCREL32.
  2033. (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
  2034. to test whether a symbol binds locally.
  2035. (elf32_mn10300_link_hash_newfunc): Don't initialize
  2036. pcrel_relocs_copied.
  2037. (_bfd_mn10300_elf_discard_copies): Delete.
  2038. (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
  2039. 2004-06-26 Mark Kettenis <kettenis@gnu.org>
  2040. * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
  2041. 2004-06-25 Joel Brobecker <brobecker@gnat.com>
  2042. * som.c (som_set_reloc_info): Correct small typo.
  2043. 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  2044. * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
  2045. (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
  2046. (m32r_elf_gcsweep_hook): Likewise.
  2047. (m32r_elf_check_relocs): Likewise.
  2048. (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
  2049. R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
  2050. * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
  2051. BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
  2052. * bfd-in2.h: Regenerated.
  2053. * libbfd.h: Regenerated.
  2054. 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
  2055. * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
  2056. relocation symbol.
  2057. (elf64_x86_64_relocate_section): Issue an error for
  2058. R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
  2059. against global symbols when building shared library.
  2060. 2004-06-24 Alan Modra <amodra@bigpond.net.au>
  2061. * section.c (struct sec): Rename "_cooked_size" to "size".
  2062. Rename "_raw_size" to "rawsize".
  2063. (STD_SECTION): Adjust comments.
  2064. (bfd_set_section_size, bfd_get_section_contents): Use size.
  2065. (bfd_malloc_and_get_section): New function.
  2066. * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
  2067. * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
  2068. Correctly free reloc and contents memory.
  2069. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
  2070. and fake CIE now that we can shink section size to zero.
  2071. (_bfd_elf_write_section_eh_frame): Likewise..
  2072. * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
  2073. * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
  2074. _bfd_stab_section_offset. Use _bfd_elf_section_offset.
  2075. * stabs.c (_bfd_stab_section_offset_): Remove unused args and
  2076. unneeded indirection.
  2077. * elf.c (_bfd_elf_section_offset): .. and update call.
  2078. * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
  2079. * libbfd.h: Regenerate.
  2080. * bfd-in2.h: Regenerate.
  2081. Replace occurrences of "_raw_size" and "_cooked_size" in most places
  2082. with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
  2083. sections. Use "rawsize", if non-zero, for bfd_get_section_contents
  2084. calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
  2085. Similarly use "rawsize", if non-zero, in reloc functions to validate
  2086. reloc addresses. Use new bfd_malloc_and_get_section in most places
  2087. where bfd_get_section_contents was called. Expand all occurrences of
  2088. bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
  2089. grok_prstatus and similar functions to "size".
  2090. * aix386-core.c (aix386_core_file_p): ..
  2091. * aix5ppc-core.c (xcoff64_core_p): ..
  2092. * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
  2093. aout_adobe_set_section_contents): ..
  2094. * aout-target.h (callback): ..
  2095. * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
  2096. MY_bfd_final_link): ..
  2097. * aoutf1.h (sunos4_core_file_p): ..
  2098. * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
  2099. adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
  2100. final_link, aout_link_input_section): ..
  2101. * binary.c (binary_object_p, binary_canonicalize_symtab,
  2102. binary_set_section_contents): ..
  2103. * bout.c (b_out_callback, b_out_write_object_contents,
  2104. b_out_set_section_contents, b_out_bfd_relax_section,
  2105. b_out_bfd_get_relocated_section_contents): ..
  2106. * cisco-core.c (cisco_core_file_validate): ..
  2107. * coff-alpha.c (alpha_ecoff_object_p,
  2108. alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
  2109. * coff-arm.c (coff_arm_relocate_section,
  2110. bfd_arm_allocate_interworking_sections): ..
  2111. * coff-h8300.c (h8300_reloc16_extra_cases,
  2112. h8300_bfd_link_add_symbols): ..
  2113. * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
  2114. * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
  2115. ppc_bfd_coff_final_link): ..
  2116. * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
  2117. * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
  2118. sh_align_loads, sh_coff_get_relocated_section_contents): ..
  2119. * coff64-rs6000.c (xcoff64_write_object_contents,
  2120. xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
  2121. * coffcode.h (coff_compute_section_file_positions,
  2122. coff_write_object_contents): ..
  2123. * coffgen.c (make_a_section_from_file, coff_write_symbols,
  2124. coff_section_symbol, build_debug_section): ..
  2125. * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
  2126. process_embedded_commands, _bfd_coff_link_input_bfd,
  2127. _bfd_coff_write_global_sym): ..
  2128. * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
  2129. * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
  2130. * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
  2131. * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
  2132. _bfd_dwarf2_find_nearest_line): ..
  2133. * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
  2134. ecoff_compute_section_file_positions,
  2135. _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
  2136. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
  2137. _bfd_elf_discard_section_eh_frame_hdr,
  2138. _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
  2139. _bfd_elf_write_section_eh_frame,
  2140. _bfd_elf_write_section_eh_frame_hdr): ..
  2141. * elf-hppa.h (elf_hppa_sort_unwind): ..
  2142. * elf-m10200.c (mn10200_elf_relax_section,
  2143. mn10200_elf_relax_delete_bytes,
  2144. mn10200_elf_get_relocated_section_contents): ..
  2145. * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
  2146. mn10300_elf_check_relocs, mn10300_elf_relax_section,
  2147. mn10300_elf_relax_delete_bytes,
  2148. mn10300_elf_get_relocated_section_contents,
  2149. _bfd_mn10300_elf_adjust_dynamic_symbol,
  2150. _bfd_mn10300_elf_discard_copies,
  2151. _bfd_mn10300_elf_size_dynamic_sections,
  2152. _bfd_mn10300_elf_finish_dynamic_sections): ..
  2153. * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
  2154. _bfd_elf_make_section_from_phdr, elf_fake_sections,
  2155. bfd_elf_set_group_contents, map_sections_to_segments,
  2156. elf_sort_sections, assign_file_positions_for_segments,
  2157. SECTION_SIZE, copy_private_bfd_data,
  2158. _bfd_elf_get_dynamic_reloc_upper_bound,
  2159. _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
  2160. _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
  2161. elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
  2162. elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
  2163. _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
  2164. * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
  2165. bfd_elf32_arm_process_before_allocation,
  2166. elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
  2167. elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
  2168. elf32_arm_write_section): ..
  2169. * elf32-cris.c (cris_elf_grok_prstatus,
  2170. elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
  2171. elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
  2172. cris_elf_check_relocs, elf_cris_size_dynamic_sections,
  2173. elf_cris_discard_excess_dso_dynamics,
  2174. elf_cris_discard_excess_program_dynamics): ..
  2175. * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
  2176. * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
  2177. * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
  2178. _frv_create_got_section, _frvfdpic_assign_plt_entries,
  2179. elf32_frvfdpic_size_dynamic_sections,
  2180. elf32_frvfdpic_modify_segment_map,
  2181. elf32_frvfdpic_finish_dynamic_sections): ..
  2182. * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
  2183. elf32_h8_get_relocated_section_contents): ..
  2184. * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
  2185. elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
  2186. allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
  2187. elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
  2188. elf32_hppa_finish_dynamic_sections): ..
  2189. * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
  2190. i370_elf_size_dynamic_sections, i370_elf_check_relocs,
  2191. i370_elf_finish_dynamic_sections): ..
  2192. * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
  2193. allocate_dynrelocs, elf_i386_size_dynamic_sections,
  2194. elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
  2195. * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
  2196. i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
  2197. * elf32-ip2k.c (ip2k_is_switch_table_128,
  2198. ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
  2199. ip2k_relax_switch_table_256, ip2k_elf_relax_section,
  2200. adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
  2201. * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
  2202. m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
  2203. allocate_dynrelocs, m32r_elf_size_dynamic_sections,
  2204. m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
  2205. m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
  2206. m32r_elf_get_relocated_section_contents): ..
  2207. * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
  2208. m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
  2209. m68hc11_elf_relax_delete_bytes): ..
  2210. * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
  2211. m68hc12_elf_size_one_stub): ..
  2212. * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
  2213. elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
  2214. * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
  2215. elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
  2216. elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
  2217. * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
  2218. elf32_mips_grok_prstatus): ..
  2219. * elf32-or32.c (or32_elf_consth_reloc): ..
  2220. * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
  2221. elf_create_pointer_linker_section, ppc_elf_create_linker_section,
  2222. ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
  2223. allocate_dynrelocs, ppc_elf_size_dynamic_sections,
  2224. ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
  2225. ppc_elf_final_write_processing): ..
  2226. * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
  2227. allocate_dynrelocs, elf_s390_size_dynamic_sections,
  2228. elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
  2229. * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
  2230. sh_elf_relax_delete_bytes, sh_elf_align_loads,
  2231. sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
  2232. sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
  2233. sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
  2234. * elf32-sh64-com.c (sh64_address_in_cranges,
  2235. sh64_get_contents_type): ..
  2236. * elf32-sh64.c (sh64_find_section_for_address,
  2237. sh64_elf_final_write_processing): ..
  2238. * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
  2239. sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
  2240. allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
  2241. elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
  2242. * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
  2243. * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
  2244. elf_vax_size_dynamic_sections, elf_vax_discard_copies,
  2245. elf_vax_instantiate_got_entries, elf_vax_relocate_section,
  2246. elf_vax_finish_dynamic_sections): ..
  2247. * elf32-xstormy16.c (xstormy16_elf_24_reloc,
  2248. xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
  2249. xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
  2250. xstormy16_elf_finish_dynamic_sections): ..
  2251. * elf32-xtensa.c (xtensa_read_table_entries,
  2252. elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
  2253. elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
  2254. bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
  2255. elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
  2256. elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
  2257. get_relocation_opcode, retrieve_contents, find_relaxable_sections,
  2258. collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
  2259. relax_section, shrink_dynamic_reloc_sections, relax_property_section,
  2260. xtensa_callback_required_dependence): ..
  2261. * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
  2262. elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
  2263. elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
  2264. elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
  2265. elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
  2266. elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
  2267. elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
  2268. elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
  2269. * elf64-hppa.c (allocate_dynrel_entries,
  2270. elf64_hppa_size_dynamic_sections,
  2271. elf64_hppa_finish_dynamic_sections): ..
  2272. * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
  2273. mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
  2274. elf64_mips_grok_prstatus): ..
  2275. * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
  2276. mmix_elf_relocate_section, mmix_elf_final_link,
  2277. mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
  2278. mmix_elf_relax_section, mmix_elf_get_section_contents): ..
  2279. * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
  2280. ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
  2281. ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
  2282. allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
  2283. ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
  2284. toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
  2285. ppc64_elf_build_stubs, ppc64_elf_relocate_section,
  2286. ppc64_elf_finish_dynamic_sections): ..
  2287. * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
  2288. allocate_dynrelocs, elf_s390_size_dynamic_sections,
  2289. elf_s390_finish_dynamic_sections): ..
  2290. * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
  2291. sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
  2292. sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
  2293. sh64_elf64_finish_dynamic_sections): ..
  2294. * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
  2295. sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
  2296. sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
  2297. sparc64_elf_finish_dynamic_symbol,
  2298. sparc64_elf_finish_dynamic_sections): ..
  2299. * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
  2300. elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
  2301. elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
  2302. elf64_x86_64_finish_dynamic_sections): ..
  2303. * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
  2304. * elfcode.h (elf_slurp_reloc_table): ..
  2305. * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
  2306. elf_finalize_dynstr, elf_link_add_object_symbols,
  2307. bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
  2308. elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
  2309. * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
  2310. elf32_mips_grok_prstatus): ..
  2311. * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
  2312. elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
  2313. elfNN_ia64_choose_gp, elfNN_ia64_final_link,
  2314. elfNN_ia64_finish_dynamic_sections): ..
  2315. * elfxx-mips.c (mips_elf_create_procedure_table,
  2316. mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
  2317. _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
  2318. mips_elf_global_got_index, mips_elf_multi_got,
  2319. mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
  2320. mips_elf_allocate_dynamic_relocations,
  2321. mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
  2322. _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
  2323. _bfd_mips_elf_always_size_sections,
  2324. _bfd_mips_elf_size_dynamic_sections,
  2325. _bfd_mips_elf_finish_dynamic_symbol,
  2326. _bfd_mips_elf_finish_dynamic_sections,
  2327. _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
  2328. _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
  2329. _bfd_elf_mips_get_relocated_section_contents,
  2330. _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
  2331. * hp300hpux.c (callback): ..
  2332. * hppabsd-core.c (make_bfd_asection): ..
  2333. * hpux-core.c (make_bfd_asection): ..
  2334. * i386linux.c (linux_link_create_dynamic_sections,
  2335. bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
  2336. * i386msdos.c (msdos_write_object_contents): ..
  2337. * i386os9k.c (os9k_callback, os9k_write_object_contents,
  2338. os9k_set_section_contents): ..
  2339. * ieee.c (parse_expression, ieee_slurp_external_symbols,
  2340. ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
  2341. ieee_write_section_part, do_with_relocs, do_as_repeat,
  2342. do_without_relocs, ieee_write_debug_part, init_for_output,
  2343. ieee_set_section_contents): ..
  2344. * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
  2345. * irix-core.c (do_sections, make_bfd_asection): ..
  2346. * libaout.h (aout_section_merge_with_text_p): ..
  2347. * libbfd.c (_bfd_generic_get_section_contents,
  2348. _bfd_generic_get_section_contents_in_window): ..
  2349. * linker.c (default_indirect_link_order): ..
  2350. * lynx-core.c (make_bfd_asection): ..
  2351. * m68klinux.c (linux_link_create_dynamic_sections,
  2352. bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
  2353. * mach-o.c (bfd_mach_o_make_bfd_section,
  2354. bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
  2355. bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
  2356. bfd_mach_o_scan_read_segment): ..
  2357. * merge.c (_bfd_add_merge_section, record_section, merge_strings,
  2358. _bfd_merge_sections): ..
  2359. * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
  2360. mmo_map_set_sizes, mmo_canonicalize_symtab,
  2361. mmo_internal_write_section, mmo_write_object_contents): ..
  2362. * netbsd-core.c (netbsd_core_file_p): ..
  2363. * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
  2364. nlm_alpha_set_public_section): ..
  2365. * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
  2366. * nlm32-sparc.c (nlm_sparc_write_import): ..
  2367. * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
  2368. nlm_compute_section_file_positions): ..
  2369. * oasys.c (oasys_object_p, oasys_slurp_section_data,
  2370. oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
  2371. * opncls.c (get_debug_link_info): ..
  2372. * osf-core.c (make_bfd_asection): ..
  2373. * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
  2374. adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
  2375. final_link, aout_link_input_section): ..
  2376. * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
  2377. pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
  2378. * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
  2379. bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
  2380. * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
  2381. * ptrace-core.c (ptrace_unix_core_file_p): ..
  2382. * reloc.c (bfd_perform_relocation, bfd_install_relocation,
  2383. _bfd_final_link_relocate, bfd_generic_relax_section,
  2384. bfd_generic_get_relocated_section_contents): ..
  2385. * reloc16.c (bfd_coff_reloc16_relax_section,
  2386. bfd_coff_reloc16_get_relocated_section_c): ..
  2387. * riscix.c (riscix_some_aout_object_p): ..
  2388. * rs6000-core.c (read_hdr, make_bfd_asection): ..
  2389. * sco5-core.c (make_bfd_asection): ..
  2390. * simple.c (bfd_simple_get_relocated_section_contents): ..
  2391. * som.c (som_object_setup, setup_sections, som_prep_headers,
  2392. som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
  2393. som_set_reloc_info, som_get_section_contents,
  2394. som_bfd_link_split_section): ..
  2395. * sparclinux.c (linux_link_create_dynamic_sections,
  2396. bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
  2397. * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
  2398. * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
  2399. _bfd_write_stab_strings, _bfd_stab_section_offset): ..
  2400. * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
  2401. bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
  2402. sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
  2403. sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
  2404. sunos_finish_dynamic_link): ..
  2405. * syms.c (_bfd_stab_section_find_nearest_line): ..
  2406. * tekhex.c (first_phase, tekhex_set_section_contents,
  2407. tekhex_write_object_contents): ..
  2408. * trad-core.c (trad_unix_core_file_p): ..
  2409. * versados.c (process_esd, process_otr, process_otr): ..
  2410. * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
  2411. * vms-misc.c (add_new_contents): ..
  2412. * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
  2413. * vms.c (vms_set_section_contents): ..
  2414. * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
  2415. xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
  2416. _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
  2417. * xsym.c (bfd_sym_scan): .. See above.
  2418. 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
  2419. * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
  2420. calling _bfd_merged_section_offset only for section symbols.
  2421. 2004-06-22 Alan Modra <amodra@bigpond.net.au>
  2422. * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
  2423. for handling SEC_MERGE symbols in relax_section.
  2424. 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
  2425. 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
  2426. * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
  2427. linked together. Mark the result as h8300sx code.
  2428. 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
  2429. * elf-bfd.h (struct elf_backend_data): Added
  2430. elf_backend_omit_section_dynsym.
  2431. (_bfd_elf_link_omit_section_dynsym): Declare.
  2432. * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
  2433. (elf_backend_omit_section_dynsym): Use it for frvfdpic.
  2434. * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
  2435. (_bfd_elf_link_renumber_dynsyms): ... this function.
  2436. * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
  2437. _bfd_elf_link_omit_section_dynsym).
  2438. (elfNN_bed): Added elf_backend_omit_section_dynsym.
  2439. 2004-06-21 Nick Clifton <nickc@redhat.com>
  2440. * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
  2441. flags.
  2442. 2004-06-17 Jerome Guitton <guitton@gnat.com>
  2443. * bfd-in.h (bfd_cache_close_all): New function declaration.
  2444. * bfd-in2.h: Regenerate.
  2445. * cache.c (bfd_cache_close_all): New function definition.
  2446. 2004-06-16 Mark Kettenis <kettenis@gnu.org>
  2447. * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
  2448. 4.10 and beyond.
  2449. * configure: Regenerate.
  2450. 2004-06-16 Daniel Jacobowitz <dan@debian.org>
  2451. * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
  2452. the pre-existing section.
  2453. 2004-06-15 Alan Modra <amodra@bigpond.net.au>
  2454. * section.c (struct sec): Remove usused flags. Reorganize a little.
  2455. (bfd_get_section_size_before_reloc): Delete.
  2456. (bfd_get_section_size_after_reloc): Delete.
  2457. (STD_SECTION): Update.
  2458. (bfd_get_section_size_now): Delete.
  2459. (bfd_set_section_contents): Don't referece reloc_done.
  2460. (bfd_get_section_contents): Remove reloc_done comment.
  2461. * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
  2462. reloc_done.
  2463. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
  2464. * ecoff.c (bfd_debug_section): Update initializer.
  2465. * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
  2466. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
  2467. * bfd-in.h (bfd_section_size): Expand.
  2468. (bfd_get_section_size): New macro.
  2469. * bfd-in2.h: Regenerate.
  2470. * coff64-rs6000.c (xcoff64_write_object_contents): Replace
  2471. bfd_get_section_size_before_reloc with bfd_get_section_size.
  2472. * coffcode.h (coff_write_object_contents): Likewise.
  2473. * coffgen.c (build_debug_section): Likewise.
  2474. * dwarf1.c (parse_line_table): Likewise.
  2475. (_bfd_dwarf1_find_nearest_line): Likewise.
  2476. * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
  2477. * i386msdos.c (msdos_write_object_contents): Likewise.
  2478. * pdp11.c (squirt_out_relocs): Likewise.
  2479. * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
  2480. * elf64-mmix.c (mmix_elf_final_link): Update comment.
  2481. 2004-06-14 Chris Demetriou <cgd@broadcom.com>
  2482. * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
  2483. removal) with updated comment.
  2484. (bfd_elf32_bfd_reloc_type_lookup): Add back case for
  2485. BFD_RELOC_32_PCREL.
  2486. (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
  2487. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
  2488. 2004-06-12 Alan Modra <amodra@bigpond.net.au>
  2489. * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
  2490. overflow on branches to undefweaks.
  2491. 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  2492. * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
  2493. as ecoff_section_data() does not return a valid lvalue.
  2494. 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
  2495. * elflink.c (elf_sort_symbol): Compare section id, not pointers.
  2496. (elf_link_add_object_symbols): Likewise.
  2497. * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
  2498. (elf_backend_reloc_type_class): New.
  2499. 2004-06-08 Mark Kettenis <kettenis@gnu.org>
  2500. * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
  2501. netbsd-core.lo.
  2502. * configure: Regenerate.
  2503. 2004-06-07 Daniel Jacobowitz <dan@debian.org>
  2504. From: Albert Chin-A-Young <china@thewrittenword.com>
  2505. * elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
  2506. to unsigned int.
  2507. 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
  2508. * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
  2509. change.
  2510. 2004-05-28 DJ Delorie <dj@redhat.com>
  2511. * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
  2512. for linking, but otherwise adjust reloc for merged sections.
  2513. 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
  2514. * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
  2515. _bfd_merged_section_offset for local symbols.
  2516. 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
  2517. * Makefile.am: Regenerate dependencies.
  2518. * Makefile.in: Regenerate.
  2519. * archures.c: Add bfd_mach_sh3_nommu .
  2520. * bfd-in2.h: Regenerate.
  2521. * cpu-sh.c: Add sh3-nommu architecture.
  2522. (bfd_to_arch_table): Create new table.
  2523. (sh_get_arch_from_bfd_mach): Create new function.
  2524. (sh_get_arch_up_from_bfd_mach): Create new function.
  2525. (sh_merge_bfd_arch): Create new function.
  2526. * elf32-sh.c (sh_ef_bfd_table): Add table.
  2527. (sh_elf_check_relocs): Replace switch statement with
  2528. use of sh_ef_bfd_table .
  2529. (sh_elf_get_flags_from_mach): Add new function.
  2530. (sh_find_elf_flags): Likewise.
  2531. (sh_elf_copy_private_data): Replace most of non-elf contents
  2532. with a call to sh_merge_bfd_arch() .
  2533. 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
  2534. * Makefile.am (bfdver.h): Use explicit filename, not $< .
  2535. * Makefile.in: Regenerate.
  2536. 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
  2537. * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
  2538. custom calling conventions for dynamic symbols.
  2539. (mn10300_elf_relax_section): Avoid relaxing a function as a local
  2540. symbol if it's an alias to a global one.
  2541. 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
  2542. * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
  2543. change.
  2544. 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
  2545. * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
  2546. loop over hashes.
  2547. 2004-05-26 Alan Modra <amodra@bigpond.net.au>
  2548. * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
  2549. for SHT_GROUP sections.
  2550. 2004-05-25 Alan Modra <amodra@bigpond.net.au>
  2551. * elflink.c (elf_link_add_object_symbols): Don't set up merge
  2552. section data here..
  2553. * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
  2554. * merge.c: Formatting. Remove unnecessary casts. Expand
  2555. bfd_get_section_alignment macro.
  2556. (struct sec_merge_sec_info): Rename "first" to "first_str". Update
  2557. use throughout file.
  2558. (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
  2559. comment. Abort on dynamic or non-SEC_MERGE input. Don't test
  2560. section name to determine sinfo group, instead test output section
  2561. and alignment.
  2562. (_bfd_merge_sections): Add struct bfd_link_info param. Call
  2563. _bfd_strip_section_from_output rather than just twiddling flags.
  2564. * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
  2565. (_bfd_merge_sections): Update prototype.
  2566. * libbfd.h: Regenerate.
  2567. 2004-05-24 Mark Kettenis <kettenis@gnu.org>
  2568. * netbsd-core.c: Correctly indent section that sets architecture
  2569. from machine ID.
  2570. From Miod Vallat <miod@online.fr>:
  2571. * m88kopenbsd.c: New file.
  2572. * targets.c (m88k_openbsd_vec): New.
  2573. * config.bfd: Add m88k-*-openbsd*.
  2574. * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
  2575. (m88kopenbsd_vec): New.
  2576. * configure: Regenerate.
  2577. * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
  2578. (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
  2579. Run "make dep-am".
  2580. * Makefile.in: Regenerate.
  2581. * po/SRC-POTFILES.in: Regenerate.
  2582. 2004-05-24 Nick Clifton <nickc@redhat.com>
  2583. * hash.c: Remove bogus node "Changing the default Hash Table Size"
  2584. introduced by hash table size patch.
  2585. 2004-05-22 Ben Elliston <bje@au.ibm.com>
  2586. * configure.in (is_release): Remove.
  2587. (bfd_version_date, bfd_version, bfd_version_string): Likewise.
  2588. (AC_OUTPUT): Don't output bfdver.h from version.h.
  2589. * configure: Regenerate.
  2590. * Makefile.am (RELEASE): New variable.
  2591. (bfdver.h): New target.
  2592. * Makefile.in: Regenerate.
  2593. * doc/Makefile.in: Likewise.
  2594. 2004-05-22 Ben Elliston <bje@au.ibm.com>
  2595. * Makefile.am (config.status): Don't depend on version.h.
  2596. * Makefile.in: Regenerate.
  2597. 2004-05-22 Alan Modra <amodra@bigpond.net.au>
  2598. * merge.c (_bfd_merged_section_offset): Remove "addend" param.
  2599. * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
  2600. * libbfd.h: Regenerate.
  2601. * elf.c (_bfd_elf_rela_local_sym): Adjust call.
  2602. (_bfd_elf_rel_local_sym): Likewise.
  2603. * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
  2604. (elf_link_input_bfd): Likewise.
  2605. * elf32-ppc.c (ppc_elf_relax_section): Likewise.
  2606. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  2607. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
  2608. (elfNN_ia64_relocate_section): Likewise.
  2609. 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
  2610. * hash.c (bfd_default_hash_table_size): New variable.
  2611. (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
  2612. (bfd_hash_set_default_size): New function. Set the default size
  2613. to a selected prime number close to the argument. Document new
  2614. function.
  2615. * bfd-in.h: Add prototype for bfd_hash_set_default_size.
  2616. * bfd-in2.h: Regenerate.
  2617. * Makefile.am (hash.lo): Add dependency upon libiberty.h.
  2618. * Makefile.in: Regenerate.
  2619. 2004-05-21 Mark Kettenis <kettenis@gnu.org>
  2620. * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
  2621. * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
  2622. arm, m68k, m88k and hppa core files.
  2623. 2004-05-21 Nick Clifton <nickc@redhat.com>
  2624. * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
  2625. (bfd_bwrite): Likewise.
  2626. (bfd_tell): Likewise.
  2627. (bfd_flush): Likewise.
  2628. (bfd_stat): Likewise.
  2629. (bfd_seek): Likewise.
  2630. (bfd_get_mtime): Likewise.
  2631. (bfd_get_size): Likewise.
  2632. 2004-05-19 Ben Elliston <bje@au.ibm.com>
  2633. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
  2634. 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
  2635. * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
  2636. (bfd_generic_openr_next_archived_file): Likewise.
  2637. 2004-05-17 Bob Wilson <bob.wilson@acm.org>
  2638. * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
  2639. section names by inserting a new substring after .gnu.linkonce, except
  2640. for .gnu.linkonce.t.* where the "t." is replaced.
  2641. 2004-05-17 Adam Nemet <anemet@lnxw.com>
  2642. * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
  2643. (m68-*-lynxos* case): Likewise.
  2644. (powerpc-*-lyxnos* case): New case.
  2645. (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
  2646. 2004-05-17 David Heine <dlheine@tensilica.com>
  2647. * aout-target.h (MY_bfd_copy_private_header_data): Define.
  2648. * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
  2649. * bfd.c (bfd_copy_private_header_data): Define.
  2650. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
  2651. interface.
  2652. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
  2653. * coffcode.h (coff_bfd_copy_private_header_data): Define.
  2654. * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
  2655. * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
  2656. segments by calling copy_private_bfd_data.
  2657. (_bfd_elf_copy_private_header_data): Define.
  2658. * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
  2659. * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
  2660. * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
  2661. * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
  2662. * mmo.c (mmo_bfd_copy_private_header_data): Define.
  2663. * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
  2664. * som.c (som_bfd_copy_private_header_data): Define.
  2665. * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
  2666. * vms.c (vms_bfd_copy_private_header_data): Define.
  2667. * bfd-in2.h: Regenerate.
  2668. * libbfd.h: Regenerate.
  2669. 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2670. * elfxx-mips.c (MINUS_TWO): Define.
  2671. (mips_elf_higher, mips_elf_highest,
  2672. mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
  2673. some bfd_vma values.
  2674. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
  2675. 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2676. * som.c (log2): Rename to exact_log2. Adjust all callers.
  2677. 2004-05-13 Paul Brook <paul@codesourcery.com>
  2678. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
  2679. dwarf3 format CIE entries. Remove comment about the size of the
  2680. ra_column field. It is now correctly deduced.
  2681. 2004-05-13 Joel Sherrill <joel@oarcorp.com>
  2682. * config.bfd (or32-*-rtems*): Switch to elf.
  2683. 2004-05-13 Nick Clifton <nickc@redhat.com>
  2684. * po/fr.po: Updated French translation.
  2685. 2004-05-11 Jakub Jelinek <jakub@redhat.com>
  2686. * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
  2687. into .dynsym if elf_section_data (sec)->dynindx <= 0.
  2688. Adjust counting of last_local.
  2689. (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
  2690. other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
  2691. created by the linker nor !SHF_ALLOC.
  2692. * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
  2693. DT_PLTGOT to the start of the .got.plt section instead of the
  2694. .got output section. Set sh_entsize for .got section in addition
  2695. to .got.plt.
  2696. (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
  2697. is at sgot->output_section->vma.
  2698. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
  2699. DT_PLTGOT to the start of the .got.plt section instead of the
  2700. .got output section.
  2701. (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
  2702. is at sgot->output_section->vma. Set sh_entsize for .got section
  2703. in addition to .got.plt.
  2704. * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
  2705. (bfd_section_from_phdr): Likewise.
  2706. (map_sections_to_segments): Likewise.
  2707. (assign_file_positions_for_segments): Likewise.
  2708. (get_program_header_size): Likewise.
  2709. * elflink.c (bfd_elf_size_dynamic_sections): Set
  2710. elf_tdata (output_bfd)->relro from info->relro.
  2711. * elf-bfd.h (struct elf_obj_tdata): Add relro field.
  2712. 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
  2713. * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
  2714. a zero symndx for which we hadn't accounted a dynamic relocation.
  2715. (_frvfdpic_add_rofixup): Likewise.
  2716. 2004-05-07 Brian Ford <ford@vss.fsi.com>
  2717. DJ Delorie <dj@redhat.com>
  2718. * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
  2719. Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
  2720. * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
  2721. IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
  2722. 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
  2723. * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
  2724. immediately if there's no link info.
  2725. (elf32_frvfdpic_copy_private_bfd_data): New.
  2726. (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
  2727. 2004-05-06 Zack Weinberg <zack@codesourcery.com>
  2728. * dwarf2.c (add_line_info): Also set info->filename to NULL if
  2729. filename argument is null; do not call strlen on a null pointer.
  2730. 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
  2731. * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
  2732. special case.
  2733. 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
  2734. * configure.in (bfd_elf32_frvfdpic_vec): New.
  2735. * configure: Rebuilt.
  2736. * targets.c (bfd_elf32_frvfdpic_vec): New.
  2737. * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
  2738. on the latter.
  2739. * elf32-frv.c: Prefix all identifiers added for FDPIC support with
  2740. frvfdpic instead of frv. Rearrange elf-target macros such that
  2741. the FDPIC-specific ones are only defined for this new target
  2742. vector.
  2743. (bfd_elf32_frvfdpic_vec): Declare.
  2744. (IS_FDPIC): New.
  2745. (elf32_frv_relocate_section): Use it to enable segment checking
  2746. and to control rofixup emission. Add output section vma to
  2747. applied relocation in non-LOAD non-ALLOC sections. Use
  2748. _bfd_error_handler for errors.
  2749. (_frv_create_got_section): Create .rel.got and .rofixup only in
  2750. FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
  2751. linker script.
  2752. (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
  2753. (elf32_frvfdpic_modify_segment_map): Likewise.
  2754. (elf32_frv_finish_dynamic_sections): New, do-nothing.
  2755. (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
  2756. error message if we miscompute the rofixup size.
  2757. (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
  2758. (frvfdpic_elf_encode_eh_address): Likewise.
  2759. (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
  2760. Record relocs only in FDPIC. Make sure _gp is defined for GPREL
  2761. relocs. Reject unknown relocation types.
  2762. (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
  2763. (frv_elf_merge_private_bfd_data): Likewise.
  2764. (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
  2765. 0x4000 for newly-added elf32-frvfdpic.
  2766. 2004-05-05 Nick Clifton <nickc@redhat.com>
  2767. PR/136
  2768. * cache.c (bfd_cache_lookup_worker): Call abort() rather than
  2769. returning NULL as most users of this function do not check its
  2770. return value.
  2771. * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
  2772. of bfd_cache_lookup().
  2773. * sco5-core.c (sco5_core_file_p): Likewise.
  2774. * trad-core.c (trad_unix_core_file_p): Likewise.
  2775. 2004-05-05 Nick Clifton <nickc@redhat.com>
  2776. * cache.c (bfd_cache_lookup): Improve formatting.
  2777. * archive.c: Fix formatting.
  2778. 2004-05-05 Peter Barada <peter@the-baradas.com>
  2779. * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
  2780. * cpu-m68k.c(bfd_m68k_arch): Likewise.
  2781. * bfd-in2.h(bfd_architecture): Regenerate.
  2782. 2004-05-03 Alan Modra <amodra@bigpond.net.au>
  2783. * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
  2784. SEC_MERGE sections.
  2785. * elflink.c (elf_link_input_bfd): Adjust output reloc index for
  2786. those against discarded link-once and SEC_MERGE section symbols.
  2787. 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
  2788. * section.c (bfd_get_section_by_name_if): New.
  2789. * bfd-in2.h: Regenerated.
  2790. 2004-05-02 Alan Modra <amodra@bigpond.net.au>
  2791. * som.c (som_bfd_is_group_section): Define.
  2792. 2004-05-01 Alan Modra <amodra@bigpond.net.au>
  2793. * section.c (bfd_make_section_anyway): Copy the whole
  2794. bfd_hash_entry, not just "next" from existing entry.
  2795. 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
  2796. * elf.c (bfd_section_from_shdr): Maintain the section order in
  2797. a section group.
  2798. (special_sections): Add ".note.GNU-stack".
  2799. (elf_fake_sections): Handle section group for relocatable
  2800. link..
  2801. 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
  2802. * section.c (bfd_sections_find_if): New.
  2803. * bfd-in2.h: Regenerated.
  2804. 2004-04-30 Alan Modra <amodra@bigpond.net.au>
  2805. * section.c (bfd_make_section_anyway): Add all sections to hash tab.
  2806. * elf-bfd.h (bfd_elf_is_group_section): Declare.
  2807. * elf.c (bfd_elf_is_group_section): New function.
  2808. * elfxx-target.h (bfd_elfNN_bfd_is_group_section
  2809. * section.c (bfd_generic_is_group_section): New function.
  2810. * targets.c (struct bfd_target): Add _bfd_is_group_section field.
  2811. (BFD_JUMP_TABLE_LINK): Adjust.
  2812. * aout-adobe.c (aout_32_bfd_is_group_section): Define.
  2813. * aout-target.h (MY_bfd_is_group_section): Define.
  2814. * aout-tic30.c (MY_bfd_is_group_section): Define.
  2815. * bfd.c (bfd_is_group_section): Define.
  2816. * binary.c (binary_bfd_is_group_section): Define.
  2817. * bout.c (b_out_bfd_is_group_section): Define.
  2818. * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
  2819. * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
  2820. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
  2821. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
  2822. * coffcode.h (coff_bfd_is_group_section): Define.
  2823. * i386msdos.c (msdos_bfd_is_group_section): Define.
  2824. * i386os9k.c (os9k_bfd_is_group_section): Define.
  2825. * ieee.c (ieee_bfd_is_group_section): Define.
  2826. * ihex.c (ihex_bfd_is_group_section): Define.
  2827. * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
  2828. * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
  2829. * mmo.c (mmo_bfd_is_group_section): Define.
  2830. * nlm-target.h (nlm_bfd_is_group_section): Define.
  2831. * oasys.c (oasys_bfd_is_group_section): Define.
  2832. * pef.c (bfd_pef_bfd_is_group_section): Define.
  2833. * ppcboot.c (ppcboot_bfd_is_group_section): Define.
  2834. * srec.c (srec_bfd_is_group_section): Define.
  2835. * tekhex.c (tekhex_bfd_is_group_section): Define.
  2836. * versados.c (versados_bfd_is_group_section): Define.
  2837. * vms.c (vms_bfd_is_group_section): Define.
  2838. * xsym.c (bfd_sym_bfd_is_group_section): Define.
  2839. * bfd-in2.h: Regenerate.
  2840. * libbfd.h: Regenerate.
  2841. 2004-04-30 Alan Modra <amodra@bigpond.net.au>
  2842. * elflink.c (elf_gc_mark): Follow indirect and warning syms.
  2843. 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
  2844. * configure.in: Update version to 2.15.91.
  2845. * configure: Regenerate.
  2846. 2004-04-29 Brian Ford <ford@vss.fsi.com>
  2847. * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
  2848. * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
  2849. [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
  2850. (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
  2851. [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
  2852. .gnu.linkonce.wi. sections.
  2853. * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
  2854. (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
  2855. .gnu.linkonce.wi..
  2856. * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
  2857. (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
  2858. 2004-04-28 Chris Demetriou <cgd@broadcom.com>
  2859. * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
  2860. * bfd-in2.h: Regenerate.
  2861. * libbfd.h: Likewise.
  2862. 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2863. * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
  2864. dup_common fields.
  2865. (setup_sections): Use som_subspace_dictionary_record struct instead
  2866. subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
  2867. is_comdat, is_common or dup_common.
  2868. (som_prep_headers): Use som_subspace_dictionary_record struct. Set
  2869. is_comdat, is_common and dup_common in section subspace_dict from
  2870. copy_data.
  2871. (som_begin_writing): Use som_subspace_dictionary_record struct.
  2872. (som_finish_writing): Likewise.
  2873. (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
  2874. is_common and dup_common flags in info for symbol. Add comment
  2875. regarding linker support for these fields. Slightly reorganize
  2876. function.
  2877. (som_build_and_write_symbol_table): Set is_comdat, is_common and
  2878. dup_common fields in symbol table from symbol info.
  2879. (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
  2880. arguments. Set corresponding fields in copy_data. Change all callers.
  2881. (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
  2882. symbol table.
  2883. (som_vec): Add SEC_LINK_ONCE to applicable section flags.
  2884. * som.h (som_subspace_dictionary_record): Define.
  2885. (som_copyable_section_data_struct): Add is_comdat, is_common and
  2886. dup_common fields.
  2887. (som_section_data_struct): Use som_subspace_dictionary_record struct
  2888. instead of subspace_dictionary_record.
  2889. (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
  2890. 2004-04-27 Bob Wilson <bob.wilson@acm.org>
  2891. * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
  2892. if set. Check reloc_done flag before applying relocations. Use
  2893. output addresses, both when applying relocations and when comparing
  2894. against the specified section.
  2895. (elf_xtensa_relocate_section): Use output address to check if dynamic
  2896. reloc is in a literal pool. Set section's reloc_done flag.
  2897. 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
  2898. * elf32-sh64.c (elf_backend_section_flags): New. Defined.
  2899. (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
  2900. section.
  2901. (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
  2902. section.
  2903. 2004-04-27 Alan Modra <amodra@bigpond.net.au>
  2904. * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
  2905. structure field removed in 2004-04-24 patch.
  2906. * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
  2907. * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
  2908. Constify hdr arg.
  2909. * elf32-arm.h (elf32_arm_section_flags): Likewise.
  2910. * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
  2911. * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
  2912. * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
  2913. field before calling elf_backend_section_flags.
  2914. 2004-04-24 Chris Demetriou <cgd@broadcom.com>
  2915. * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
  2916. (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
  2917. (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
  2918. BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
  2919. and BFD_RELOC_32_PCREL.
  2920. (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
  2921. R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
  2922. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
  2923. (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
  2924. (mips_elf_next_relocation): Move comment about matching HI/LO
  2925. relocations to...
  2926. (_bfd_mips_elf_relocate_section): Here. Remove handling for
  2927. R_MIPS_GNU_REL_HI16.
  2928. 2004-04-23 Chris Demetriou <cgd@broadcom.com>
  2929. * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
  2930. (mips_switch_reloc, mips_read_relocs, mips_relax_section)
  2931. (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
  2932. (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
  2933. and update comments to reflect current usage.
  2934. (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
  2935. and MIPS_R_SWITCH, as well as several empty entries. Update comment
  2936. for MIPS_R_PCREL16.
  2937. (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
  2938. (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
  2939. for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
  2940. (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
  2941. type number to be MIPS_R_PCREL16.
  2942. (mips_relocate_section): Remove support for link-time relaxation
  2943. of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
  2944. MIPS_R_RELLO, and MIPS_R_RELHI relocations.
  2945. (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
  2946. * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
  2947. relaxation of branches used by embedded-PIC.
  2948. * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
  2949. * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
  2950. related members, update comment.
  2951. * pe-mips.c: Remove disabled (commented-out and #if 0'd)
  2952. code related to embedded-PIC.
  2953. * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
  2954. initialization of now-removed 'adjust' member of
  2955. 'struct ecoff_debug_info'.
  2956. 2004-04-23 Chris Demetriou <cgd@broadcom.com>
  2957. * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
  2958. 2004-04-21 Philip Blundell <pb@nexus.co.uk>
  2959. * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
  2960. relocs for locally defined symbols during -shared final link.
  2961. (elf32_arm_final_link_relocate): Likewise.
  2962. 2004-04-22 Jakub Jelinek <jakub@redhat.com>
  2963. * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
  2964. ELF_LINK_POINTER_EQUALITY_NEEDED.
  2965. (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
  2966. if r_type is not R_X86_64_PC32.
  2967. (elf64_x86_64_finish_dynamic_symbol): If
  2968. ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
  2969. SHN_UNDEF symbols.
  2970. 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2971. * elf32-sh.c (sh_elf_plt_sym_val): New function.
  2972. (elf_backend_plt_sym_val): Define.
  2973. 2004-04-22 Andrew Cagney <cagney@redhat.com>
  2974. * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
  2975. 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2976. * hpux-core.c (hpux_core_core_file_p): Add cast in call to
  2977. make_bfd_asection.
  2978. * som.c (som_set_section_contents): Constantify second argument.
  2979. (hppa_som_gen_reloc_type): Abort for unsupported selectors.
  2980. (som_object_setup): Rework to avoid warning.
  2981. (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
  2982. Likewise.
  2983. 2004-04-22 Andrew Cagney <cagney@redhat.com>
  2984. * cache.c (bfd_cache_close): Check for a previously closed file.
  2985. 2004-04-22 Jakub Jelinek <jakub@redhat.com>
  2986. * bfd.c (bfd_get_synthetic_symtab): Define.
  2987. * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
  2988. NAME##_get_synthetic_symtab.
  2989. (struct bfd_target): Add _bfd_get_synthetic_symtab.
  2990. * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
  2991. * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
  2992. relplt_name fields.
  2993. (_bfd_elf_get_synthetic_symtab): New prototype.
  2994. * elfcode.h (elf_get_synthetic_symtab): Define.
  2995. * elf.c (_bfd_elf_get_synthetic_symtab): New function.
  2996. * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
  2997. (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
  2998. (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
  2999. * bfd-in2.h: Rebuilt.
  3000. * libbfd.h: Rebuilt.
  3001. * elf32-i386.c (elf_i386_plt_sym_val): New function.
  3002. (elf_backend_plt_sym_val): Define.
  3003. * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
  3004. (elf_backend_plt_sym_val): Define.
  3005. * elf32-s390.c (elf_s390_plt_sym_val): New function.
  3006. (elf_backend_plt_sym_val): Define.
  3007. * elf64-s390.c (elf_s390_plt_sym_val): New function.
  3008. (elf_backend_plt_sym_val): Define.
  3009. * elf32-sparc (elf32_sparc_plt_sym_val): New function.
  3010. (elf_backend_plt_sym_val): Define.
  3011. * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
  3012. (elf_backend_plt_sym_val): Define.
  3013. * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
  3014. (elf_backend_plt_sym_val): Define.
  3015. * aout-target.h (MY_get_synthetic_symtab): Define.
  3016. * aout-tic30.c (MY_get_synthetic_symtab): Define.
  3017. * coff-rs6000.c (rs6000coff_vec): Add
  3018. _bfd_nodynamic_get_synthetic_symtab.
  3019. (pmac_xcoff_vec): Likewise.
  3020. * coff64-rs6000.c (rs6000coff64_vec): Add
  3021. _bfd_nodynamic_get_synthetic_symtab.
  3022. (aix5coff64_vec): Likewise.
  3023. * sunos.c (MY_get_synthetic_symtab): Define.
  3024. * vms.c (vms_get_synthetic_symtab): Define.
  3025. 2004-04-22 Nick Clifton <nickc@redhat.com>
  3026. * bfd.c (bfd_archive_filename): Return NULL on NULL input.
  3027. 2004-04-22 Peter Barada <peter@the-baradas.com>
  3028. * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
  3029. * bfd2-in.h: Regenerate.
  3030. * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
  3031. 2004-04-21 Chris Demetriou <cgd@broadcom.com>
  3032. * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
  3033. * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
  3034. * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
  3035. (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
  3036. * bfd-in2.h: Regenerate.
  3037. 2004-04-21 Bob Wilson <bob.wilson@acm.org>
  3038. * elf32-xtensa.c (is_same_value): Add final_static_link argument and
  3039. require relocations against a weak symbol to reference the same
  3040. symbol hash entry if not a final, static link.
  3041. (get_cached_value, add_value_map): Add final_static_link argument.
  3042. (remove_literals): Pass final_static_link argument as needed.
  3043. 2004-04-21 Andrew Cagney <cagney@redhat.com>
  3044. * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
  3045. (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
  3046. (opncls_bwrite, opncls_bclose, opncls_bflush)
  3047. (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
  3048. bfd iovec that uses function callbacks.
  3049. (bfd_close): Use the iovec's bclose.
  3050. * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
  3051. (cache_bclose, cache_bflush, cache_bstat)
  3052. (cache_iovec): New functions and global variable, implement a
  3053. cache "iovec", where applicable set bfd_error.
  3054. (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
  3055. * bfdio.c (struct bfd_iovec): Define.
  3056. (real_read): Delete function.
  3057. (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
  3058. (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
  3059. assume that bread and bwrite set bfd_error.
  3060. * bfd.c (struct bfd): Add "iovec", update comments.
  3061. * bfd-in2.h, libbfd.h: Re-generate.
  3062. 2004-04-21 Andrew Cagney <cagney@redhat.com>
  3063. * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
  3064. 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
  3065. * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
  3066. (bfd_elf_gc_sections): Fail if a shared object is being created.
  3067. Do not fail if dynamic sections have been created. Instead call
  3068. elf_gc_mark_dynamic_ref_symbol to mark sections that contain
  3069. dynamically referenced symbols. Do not mark the whole graph
  3070. rooted at .eh_frame, only the section proper.
  3071. 2004-04-20 DJ Delorie <dj@redhat.com>
  3072. * reloc.c: Add BFD_RELOC_32_SECREL.
  3073. * bfd-in2.h: Regenerate.
  3074. * libbfd.h: Likewise.
  3075. * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
  3076. (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
  3077. (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
  3078. 2004-04-19 Jakub Jelinek <jakub@redhat.com>
  3079. * elf32-sparc.c (elf32_sparc_relocate_section): Handle
  3080. relocs against hidden/protected undefweak symbols properly.
  3081. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  3082. 2004-04-18 Mark Kettenis <kettenis@gnu.org>
  3083. * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
  3084. * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
  3085. core files.
  3086. 2004-04-17 Brian Ford <ford@vss.fsi.com>
  3087. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
  3088. filepos for the SizeOfHeaders field.
  3089. (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
  3090. overflow.
  3091. (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
  3092. 2004-04-16 Alan Modra <amodra@bigpond.net.au>
  3093. * simple.c (bfd_simple_get_relocated_section_contents): Don't
  3094. change reloc_done. Set and restore _cooked_size.
  3095. (RETURN): Delete.
  3096. 2004-04-15 Mark Kettenis <kettenis@gnu.org>
  3097. * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
  3098. core files.
  3099. 2004-04-15 Nick Clifton <nickc@redhat.com>
  3100. * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
  3101. 2004-04-15 Alan Modra <amodra@bigpond.net.au>
  3102. * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
  3103. 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
  3104. * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
  3105. when it is a definition.
  3106. 2004-04-14 Alan Modra <amodra@bigpond.net.au>
  3107. * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
  3108. when statically linking PIC code.
  3109. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  3110. 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3111. * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
  3112. * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
  3113. targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
  3114. * configure: Regenerate.
  3115. 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
  3116. * elflink.c: Include libiberty.h.
  3117. * Makefile.am (elflink.lo): Depend on libiberty.h.
  3118. * Makefile.in: Regenerate.
  3119. 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
  3120. * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
  3121. ".MIPS.stubs".
  3122. 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
  3123. * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
  3124. reserve the memory for dynamic linker
  3125. 2004-04-05 Mark Kettenis <kettenis@gnu.org>
  3126. * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
  3127. (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
  3128. 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
  3129. * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
  3130. RELOC_FOR_GLOBAL_SYMBOL.
  3131. (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
  3132. 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
  3133. * elf32-arm.h (elf32_arm_final_link_relocate): Handle
  3134. R_ARM_ALU* only if OLD_ARM_ABI is not defined.
  3135. 2004-04-01 Paul Brook <paul@codesourcery.com>
  3136. * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
  3137. * elf32-arm.h (struct elf32_elf_section_map): New.
  3138. (struct _arm_elf_section_data): New.
  3139. (elf32_arm_section_data): Define.
  3140. (struct elf32_arm_link_hash_table): Add byteswap_code.
  3141. (elf32_arm_link_hash_table_create): Initialize byteswap_code.
  3142. (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
  3143. (elf32_arm_post_process_headers): Set EF_ARM_BE8.
  3144. (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
  3145. elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
  3146. (bfd_elf32_new_section_hook, elf_backend_write_section,
  3147. elf_backend_link_output_symbol_hook): Define.
  3148. 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
  3149. * stabs.c (struct stab_link_includes_totals): Add field 'symb'
  3150. that keeps the characters in a B_INCL..B_EINCL range.
  3151. (_bfd_link_section_stabs): When computing the sum of the
  3152. characters in a B_INCL..B_EINCL range also keep a copy of those
  3153. characters. Use this information to distinguish between
  3154. include sections that have the same sum and the same length
  3155. but which are nevertheless unique.
  3156. 2004-03-31 Paul Brook <paul@codesourcery.com>
  3157. * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
  3158. * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
  3159. 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
  3160. * stabs.c (struct stab_link_includes_totals): Rename field 'total'
  3161. to 'sum_chars' and add field 'num_chars'.
  3162. (_bfd_link_section_stabs): When computing the sum of the
  3163. characters in a B_INCL..B_EINCL range also keep a count of the
  3164. number of characters. Use this information to help distinguish
  3165. between include sections when have the same sum but which
  3166. nevertheless are still unique.
  3167. 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
  3168. * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
  3169. 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
  3170. Tomer Levi <Tomer.Levi@nsc.com>
  3171. * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
  3172. (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
  3173. (BFD32_BACKENDS): Add elf32-cr16c.lo.
  3174. (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
  3175. (cpu-cr16c.lo): New target.
  3176. (elf32-cr16c.lo): Likewise.
  3177. * Makefile.in: Regenerate.
  3178. * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
  3179. (bfd_archures_list): Add bfd_cr16c_arch.
  3180. * config.bfd: Handle cr16c-*-elf*.
  3181. * configure.in: Handle bfd_elf32_cr16c_vec.
  3182. * configure: Regenerate.
  3183. * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
  3184. BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
  3185. BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
  3186. BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
  3187. BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
  3188. BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
  3189. BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
  3190. BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
  3191. BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
  3192. BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
  3193. BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
  3194. BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
  3195. BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
  3196. BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
  3197. BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
  3198. BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
  3199. BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
  3200. BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
  3201. BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
  3202. BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
  3203. * targets.c (bfd_elf32_cr16c_vec): Declare.
  3204. (bfd_target_vector): Add bfd_elf32_cr16c_vec.
  3205. * cpu-cr16c.c: New file.
  3206. * elf32-cr16c.c: Likewise.
  3207. * libbfd.h: Regenerate.
  3208. * bfd-in2.h: Likewise.
  3209. 2004-03-30 Jakub Jelinek <jakub@redhat.com>
  3210. * elf.c (map_sections_to_segments): Fix handling of .tbss.
  3211. 2004-03-27 Alan Modra <amodra@bigpond.net.au>
  3212. * Makefile.am: Remove all mention of elflink.h.
  3213. * Makefile.in: Regenerate.
  3214. * bfd-in.h (bfd_elf_discard_info): Declare.
  3215. (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
  3216. * bfd-in2.h: Regenerate.
  3217. * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
  3218. bfd_elf32_link_record_dynamic_symbol,
  3219. bfd_elf64_link_record_dynamic_symbol,
  3220. _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
  3221. bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
  3222. _bfd_elf32_link_record_local_dynamic_symbol,
  3223. _bfd_elf64_link_record_local_dynamic_symbol,
  3224. _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
  3225. _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
  3226. _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
  3227. _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
  3228. _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
  3229. _bfd_elf32_reloc_symbol_deleted_p,
  3230. _bfd_elf64_reloc_symbol_deleted_p): Delete.
  3231. (bfd_elf_link_record_dynamic_symbol,
  3232. bfd_elf_link_record_local_dynamic_symbol,
  3233. bfd_elf_final_link, bfd_elf_gc_sections,
  3234. bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
  3235. bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
  3236. bfd_elf_reloc_symbol_deleted_p): Declare.
  3237. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  3238. * elf32-arm.h: Update for changed function names. Remove local
  3239. WILL_CALL_FINISH_DYNAMIC_SECTION define.
  3240. * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
  3241. * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
  3242. * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
  3243. * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
  3244. * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
  3245. * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
  3246. * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
  3247. * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
  3248. * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
  3249. (bfd_elfNN_print_symbol): Define.
  3250. * elfcode.h: Don't include elflink.h.
  3251. (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
  3252. elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
  3253. elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
  3254. elf_gc_record_vtinherit, elf_gc_record_vtentry,
  3255. elf_link_record_local_dynamic_symbol): Don't define.
  3256. * elflink.c: Update for changed function names. Move elflink.h
  3257. code here.
  3258. * elflink.h: Delete file.
  3259. * po/SRC-POTFILES.in: Regenerate.
  3260. * po/bfd.pot: Regenerate.
  3261. 2004-03-27 Alan Modra <amodra@bigpond.net.au>
  3262. * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
  3263. "name" for global syms accidentally removed in 2004-03-20 change.
  3264. 2004-03-27 Alan Modra <amodra@bigpond.net.au>
  3265. * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
  3266. * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
  3267. where Elf_External_* is different for 64 and 32 bit, with
  3268. corresponding elf_size_info field.
  3269. (struct elf_final_link_info): Use "bfd_byte *" instead
  3270. of "Elf_External_Sym *" for external_syms and symbuf.
  3271. (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
  3272. vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
  3273. (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
  3274. (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
  3275. (elf_link_sort_cmp2): Adjust.
  3276. (elf_link_sort_relocs): Set up r_sym_mask local var instead of
  3277. using ELF_R_SYM macro. Set u.sym_mask.
  3278. (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
  3279. version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
  3280. vs. section_from_elf_index. Adjust Elf_External_Sym pointer
  3281. arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
  3282. Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
  3283. swap_syn_out functions. Rearrange dyn swap in/out switch.
  3284. (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
  3285. Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
  3286. (elf_link_flush_output_syms): Add elf_backend_data arg.
  3287. (elf_link_check_versioned_symbol): Likewise.
  3288. (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
  3289. Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
  3290. (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
  3291. r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
  3292. ELF_R_TYPE and ELF_R_INFO macros.
  3293. (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
  3294. based on size rather than using ELF_R_INFO.
  3295. (elf_gc_mark): Set up r_sym_shift local var and use instead of
  3296. ELF_R_SYM macro.
  3297. (struct alloc_got_off_arg): New.
  3298. (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
  3299. ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
  3300. (elf_gc_allocate_got_offsets): Adjust.
  3301. (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
  3302. ELF_R_SYM. Use bfd_section_from_elf_index.
  3303. (elf_bfd_discard_info): Set cookie.r_sym_shift.
  3304. * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
  3305. (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
  3306. 2004-03-26 Stan Shebs <shebs@apple.com>
  3307. Remove MPW support, no longer used.
  3308. * config.bfd (powerpc-*-mpw*): Remove configuration.
  3309. * mpw-config.in, mpw-make.sed: Remove files.
  3310. * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
  3311. 2004-03-26 Alan Modra <amodra@bigpond.net.au>
  3312. * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
  3313. (ppc64_elf_add_symbol_hook): New function.
  3314. * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
  3315. const from Elf_Internal_Sym param.
  3316. * elflink.c (elf_link_add_object_symbols): Adjust.
  3317. * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
  3318. * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
  3319. * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
  3320. * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
  3321. * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
  3322. * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
  3323. * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
  3324. * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
  3325. * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
  3326. * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
  3327. * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
  3328. * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
  3329. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
  3330. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
  3331. * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
  3332. * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
  3333. 2004-03-26 Alan Modra <amodra@bigpond.net.au>
  3334. * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
  3335. * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
  3336. (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
  3337. (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
  3338. (bfd_elf64_bfd_link_add_symbols): Delete.
  3339. (bfd_elf_link_add_symbols): Declare.
  3340. * elfcode.h (elf_bfd_link_add_symbols): Delete.
  3341. * elflink.c: Include safe-ctype.h.
  3342. (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
  3343. make static.
  3344. (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
  3345. (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
  3346. static.
  3347. (elf_link_add_archive_symbols): Rename from
  3348. _bfd_elf_link_add_archive_symbols, make static.
  3349. (elf_link_add_object_symbols): New function. Corresponding
  3350. elflink.h function converted to use elf_size_info.
  3351. (bfd_elf_link_add_symbols): Likewise.
  3352. (bfd_elf_size_dynamic_sections): Adjust.
  3353. * elflink.h (elf_bfd_link_add_symbols): Delete.
  3354. (elf_link_add_object_symbols): Delete.
  3355. * elf32-gen.c (elf32_generic_link_add_symbols): Call
  3356. bfd_elf_link_add_symbols.
  3357. * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
  3358. 2004-03-25 Alan Modra <amodra@bigpond.net.au>
  3359. * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
  3360. and chained shared libs only if dynsym. Clear dynsym on forced-local.
  3361. * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
  3362. (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
  3363. (_bfd_elf_add_dt_needed_tag): Declare.
  3364. (_bfd_elf_sort_symbol): Declare.
  3365. (_bfd_elf_finalize_dynstr): Declare.
  3366. (RELOC_FOR_GLOBAL_SYM): Formatting.
  3367. * elfcode.h (elf_add_dynamic_entry): Delete.
  3368. * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
  3369. elflink.h function converted to use elf_size_info.
  3370. (_bfd_elf_add_dt_needed_tag): Likewise.
  3371. (_bfd_elf_sort_symbol): Likewise.
  3372. (_bfd_elf_finalize_dynstr): Likewise.
  3373. (compute_bucket_count): Likewise.
  3374. (bfd_elf_size_dynamic_sections): Likewise. Check result of
  3375. _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
  3376. (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
  3377. * elflink.h: ..here.
  3378. (sort_symbol, add_dt_needed_tag): Delete.
  3379. (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
  3380. (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
  3381. Update all users.
  3382. * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
  3383. * elf32-cris.c (add_dynamic_entry): Likewise.
  3384. * elf32-hppa.c (add_dynamic_entry): Likewise.
  3385. * elf32-i370.c (add_dynamic_entry): Likewise.
  3386. * elf32-i386.c (add_dynamic_entry): Likewise.
  3387. * elf32-m32r.c (add_dynamic_entry): Likewise.
  3388. * elf32-m68k.c (add_dynamic_entry): Likewise.
  3389. * elf32-ppc.c (add_dynamic_entry): Likewise.
  3390. * elf32-s390.c (add_dynamic_entry): Likewise.
  3391. * elf32-sh.c (add_dynamic_entry): Likewise.
  3392. * elf32-sparc.c (add_dynamic_entry): Likewise.
  3393. * elf32-vax.c (add_dynamic_entry): Likewise.
  3394. * elf32-xtensa.c (add_dynamic_entry): Likewise.
  3395. * elf64-alpha.c (add_dynamic_entry): Likewise.
  3396. * elf64-hppa.c (add_dynamic_entry): Likewise.
  3397. * elf64-ppc.c (add_dynamic_entry): Likewise.
  3398. * elf64-s390.c (add_dynamic_entry): Likewise.
  3399. * elf64-sparc.c (add_dynamic_entry): Likewise.
  3400. * elf64-x86-64.c (add_dynamic_entry): Likewise.
  3401. * elfxx-ia64.c (add_dynamic_entry): Likewise.
  3402. * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
  3403. * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
  3404. * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
  3405. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
  3406. 2004-03-23 Paul Brook <paul@codesourcery.com>
  3407. * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
  3408. 2004-03-22 Bob Wilson <bob.wilson@acm.org>
  3409. * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
  3410. literal tables and check for relocs outside of literal pools.
  3411. (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
  3412. (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
  3413. set DF_TEXTREL.
  3414. (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
  3415. (elf_xtensa_relocate_section): Read literal tables and check for
  3416. dynamic relocations in read-only sections and not in literal pools.
  3417. 2004-03-23 Alan Modra <amodra@bigpond.net.au>
  3418. PR 51.
  3419. * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
  3420. 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
  3421. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
  3422. R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
  3423. not defined by the executable, or defined in a DSO.
  3424. <eliding run-time relocation of .got>: Initialize GOT entry for a
  3425. function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
  3426. executable.
  3427. (cris_elf_gc_sweep_hook): Improve fallthrough marking.
  3428. (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
  3429. a PLT reloc to GOT for an executable.
  3430. (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
  3431. .got for a DSO and explain why.
  3432. (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
  3433. and unreferenced symbols for which a PLT is defined. Adjust
  3434. dynamic-symbol pruning correspondingly, to make sure we don't lose
  3435. a dynamic symbol also defined by a DSO.
  3436. 2004-03-22 Alan Modra <amodra@bigpond.net.au>
  3437. * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
  3438. and rel args. Group input and output args. Wrap to 80 columns.
  3439. * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
  3440. elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
  3441. elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
  3442. elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
  3443. elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
  3444. elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
  3445. elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
  3446. elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
  3447. RELOC_FOR_GLOBAL_SYMBOL invocation.
  3448. 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
  3449. * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
  3450. unresolved symbols in objects aren't allowed.
  3451. * elf-hppa.h (elf_hppa_relocate_section): Properly handle
  3452. unresolved symbols.
  3453. (elf_hppa_remark_useless_dynamic_symbols): Likewise.
  3454. (elf_hppa_unmark_useless_dynamic_symbols):
  3455. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  3456. * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
  3457. (elf32_hppa_relocate_section): Likewise.
  3458. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  3459. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  3460. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  3461. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  3462. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
  3463. * elf-m10200.c (mn10200_elf_relocate_section): Use
  3464. RELOC_FOR_GLOBAL_SYMBOL.
  3465. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  3466. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  3467. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  3468. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  3469. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  3470. * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
  3471. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  3472. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  3473. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  3474. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  3475. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  3476. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  3477. 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3478. * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
  3479. (final_link_relocate): Likewise.
  3480. * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
  3481. R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
  3482. 2004-03-19 Alan Modra <amodra@bigpond.net.au>
  3483. * Makefile.am: Run "make dep-am".
  3484. * Makefile.in: Regenerate.
  3485. * aclocal.m4: Regenerate.
  3486. * config.in: Regenerate.
  3487. * po/bfd.pot: Regenerate.
  3488. 2004-03-19 Alan Modra <amodra@bigpond.net.au>
  3489. H.J. Lu <hongjiu.lu@intel.com>
  3490. * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
  3491. type and size change code to where it was previously. Remove
  3492. dt_needed param. Treat old weak syms as strong if new sym is
  3493. from a shared lib, even when old sym is from another shared
  3494. lib. Remove unnecessary tests of oldweak and newweak. Correct
  3495. comments.
  3496. (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
  3497. _bfd_elf_merge_symbol calls.
  3498. * elflink.h (elf_link_add_object_symbols): Update calls. Remove
  3499. dt_needed local var. Update comments.
  3500. * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
  3501. (_bfd_elf_add_default_symbol): Likewise.
  3502. * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
  3503. strong syms in one shared object overriding weak syms in another.
  3504. 2004-03-18 Alan Modra <amodra@bigpond.net.au>
  3505. * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
  3506. dyn_lib_class field. Rearrange for better packing.
  3507. (elf_dt_soname): Delete.
  3508. (elf_dyn_lib_class): Define.
  3509. * elf.c (bfd_elf_set_dt_needed_name): Update comment.
  3510. (bfd_elf_set_dt_needed_soname): Delete.
  3511. (bfd_elf_set_dyn_lib_class): New function.
  3512. * elflink.h (add_dt_needed_tag): New function. Split out from..
  3513. (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
  3514. Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
  3515. initialization of soname.
  3516. (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
  3517. elf_dt_soname.
  3518. * bfd-in.h (enum dynamic_lib_link_class): New.
  3519. (bfd_elf_set_dt_needed_soname): Delete.
  3520. (bfd_elf_set_dyn_lib_class): Declare.
  3521. * bfd-in2.h: Regenerate.
  3522. * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
  3523. (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
  3524. * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
  3525. symbol loop. Instead use add_needed to flag tag as written.
  3526. 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
  3527. * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
  3528. logic for null_input_bfd detection.
  3529. 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
  3530. * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
  3531. 2004-03-16 Mark Kettenis <kettenis@gnu.org>
  3532. * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
  3533. code.
  3534. 2004-03-16 Alan Modra <amodra@bigpond.net.au>
  3535. * elflink.c (elf_link_read_relocs_from_section): Don't use
  3536. NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
  3537. (_bfd_elf_link_read_relocs): ..to here.
  3538. * elf32-ppc.c (ppc_elf_relax_section): Formatting.
  3539. 2004-03-16 Alan Modra <amodra@bigpond.net.au>
  3540. * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
  3541. values selected in configure.host. Require both to be defined
  3542. before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
  3543. corresponding BFD_HOST vars with quotes.
  3544. <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
  3545. Always require BFD_HOST_64_BIT_DEFINED.
  3546. <file_ptr type>: Find off_t size before emitting message. Combine
  3547. off_t and ftello64 conditional.
  3548. * configure: Regenerate.
  3549. 2004-03-16 Alan Modra <amodra@bigpond.net.au>
  3550. * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
  3551. aliasing warning. Remove trailing whitespace throughout file.
  3552. 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3553. * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
  3554. input_section in calls to get_dyn_name.
  3555. * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
  3556. local symbols.
  3557. (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
  3558. 2004-03-15 Alan Modra <amodra@bigpond.net.au>
  3559. * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
  3560. (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
  3561. (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
  3562. (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
  3563. (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
  3564. * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
  3565. (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
  3566. when using long.
  3567. * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
  3568. (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
  3569. (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
  3570. (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
  3571. (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
  3572. * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
  3573. (read_8_bytes, read_indirect_string, read_address): Likewise.
  3574. (read_abbrevs, parse_comp_unit): Likewise.
  3575. * targets.c (struct bfd_target): Likewise.
  3576. * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
  3577. * hppabsd-core.c: Likewise. Formatting.
  3578. * hpux-core.c: Likewise.
  3579. * irix-core.c: Likewise.
  3580. * netbsd-core.c: Likewise.
  3581. * osf-core.c: Likewise.
  3582. * ptrace-core.c: Likewise.
  3583. * sco5-core.c: Likewise.
  3584. * trad-core.c: Likewise.
  3585. * configure: Regenerate.
  3586. * bfd-in2.h: Regenerate.
  3587. 2004-03-15 Alan Modra <amodra@bigpond.net.au>
  3588. * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
  3589. (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
  3590. (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
  3591. (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
  3592. (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
  3593. (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
  3594. (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
  3595. * libbfd.c: Likewise in function definitions.
  3596. (bfd_put_8): Mask with 0xff rather than casting to char.
  3597. (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
  3598. (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
  3599. (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
  3600. (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
  3601. (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
  3602. (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
  3603. * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
  3604. (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
  3605. (H_GET_64, H_GET_32, H_GET_16): Likewise.
  3606. (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
  3607. * archive.c (do_slurp_coff_armap): Update swap prototype.
  3608. * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
  3609. (tic54x_getl_signed_32): Likewise.
  3610. (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
  3611. * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
  3612. * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
  3613. (bfd_getp_signed_32, bfd_putp32): Likewise.
  3614. * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
  3615. bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
  3616. bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
  3617. bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
  3618. bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
  3619. bfd_h_getx_signed_16, bfd_h_putx16.
  3620. * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
  3621. * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
  3622. * hpux-core.c: Likewise.
  3623. * irix-core.c: Likewise.
  3624. * netbsd-core.c: Likewise.
  3625. * osf-core.c: Likewise.
  3626. * ptrace-core.c: Likewise.
  3627. * sco5-core.c: Likewise.
  3628. * trad-core.c: Likewise.
  3629. * bfd-in2.h: Regenerate.
  3630. 2004-03-15 Matt Thomas <matt@3am-software.com>
  3631. * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
  3632. selected.
  3633. 2004-03-13 Mark Kettenis <kettenis@gnu.org>
  3634. * config.bfd: Add x86_64-*-openbsd*.
  3635. * configure.in (x86_64-*-openbsd*): Set COREFILE to
  3636. netbsd-core.lo.
  3637. * configure: Regenerate.
  3638. 2004-03-12 Nick Clifton <nickc@redhat.com>
  3639. Dave Murphy <wintermute2k4@ntlworld.com>
  3640. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
  3641. if the input bfd does not contain any code.
  3642. 2004-03-09 Steve Ellcey <sje@cup.hp.com>
  3643. * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
  3644. 2004-03-05 Fred Fish <fnf@redhat.com>
  3645. * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
  3646. mips16 symbols to be even rather than testing first for even/odd.
  3647. (_bfd_mips_elf_link_output_symbol_hook): Ditto.
  3648. 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
  3649. * elf.c (map_sections_to_segments): Ignore .tbss sections for
  3650. layout purposes.
  3651. 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
  3652. * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
  3653. undefined symbols as hash_new.
  3654. 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
  3655. * archures.c: Add bfd_mach_sh4_nommu_nofpu.
  3656. * cpu-sh.c: Ditto.
  3657. * elf32-sh.c: Ditto.
  3658. * bfd-in2.h: Regenerate.
  3659. 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
  3660. * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
  3661. dynrelocs.
  3662. (_frv_count_got_plt_entries): Initialize them.
  3663. (frv_pic_relocs_info_find): Add insert argument. Adjust all
  3664. callers.
  3665. (frv_pic_relocs_info_for_global): Likewise.
  3666. (frv_pic_relocs_info_for_local): Likewise.
  3667. (frv_pic_merge_early_relocs_info): New.
  3668. (_frv_resolve_final_relocs_info): Use it in case one entry maps to
  3669. another.
  3670. (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
  3671. Check that we don't exceed the allocated count for entry.
  3672. (_frv_add_rofixup): Likewise.
  3673. (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
  3674. (elf32_frv_finish_dynamic_sections): Improve error message in case
  3675. we emit too few rofixup entries.
  3676. 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
  3677. * archures.c (bfd_mach_fr450): New.
  3678. * bfd-in2.h: Regenerate.
  3679. * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
  3680. (arch_info_500): Link to it.
  3681. * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
  3682. (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
  3683. (frv_elf_arch_extension_p): New function.
  3684. (frv_elf_merge_private_bfd_data): Use it.
  3685. 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
  3686. * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
  3687. * elflink.h (is_global_data_symbol_definition): Moved to
  3688. elflink.c.
  3689. (elf_link_is_defined_archive_symbol): Likewise.
  3690. (elf_link_add_archive_symbols): Likewise. Renamed to
  3691. _bfd_elf_link_add_archive_symbols.
  3692. * elflink.c (elf_link_is_defined_archive_symbol): Get the size
  3693. of ELF symbol table entry from backend.
  3694. (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
  3695. instead of elf_link_add_object_symbols.
  3696. 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
  3697. * elf-bfd.h (struct elf_backend_data): Added
  3698. elf_backend_can_make_relative_eh_frame,
  3699. elf_backend_can_make_lsda_relative_eh_frame and
  3700. elf_backend_encode_eh_address.
  3701. (_bfd_elf_encode_eh_address): Declare.
  3702. (_bfd_elf_can_make_relative): Declare.
  3703. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
  3704. hooks to decide whether to attempt to make_relative and
  3705. make_lsda_relative.
  3706. (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
  3707. (_bfd_elf_can_make_relative): New.
  3708. (_bfd_elf_encode_eh_address): New.
  3709. * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
  3710. (frv_elf_encode_eh_address): New.
  3711. (elf_backend_can_make_relative_eh_frame): Define.
  3712. (elf_backend_can_make_lsda_relative_eh_frame): Define.
  3713. (elf_backend_encode_eh_address): Define.
  3714. * elfxx-target.h
  3715. (elf_backend_can_make_relative_eh_frame): Define.
  3716. (elf_backend_can_make_lsda_relative_eh_frame): Define.
  3717. (elf_backend_encode_eh_address): Define.
  3718. (elfNN_bed): Add them.
  3719. 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
  3720. * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
  3721. complain_on_overflow to signed.
  3722. 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
  3723. * elflink.h (sort_symbol): New.
  3724. (elf_link_add_object_symbols): Use a sorted symbol array for
  3725. weakdef.
  3726. 2004-02-27 Jakub Jelinek <jakub@redhat.com>
  3727. * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
  3728. for pc relative relocs.
  3729. (elf_s390_relocate_section): Likewise.
  3730. * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
  3731. for pc relative relocs.
  3732. (elf_s390_relocate_section): Likewise.
  3733. 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
  3734. * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
  3735. count_dyn_reloc.
  3736. 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
  3737. * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
  3738. field to track if a relocation is against readonly section.
  3739. (count_dyn_reloc): Take a new argument for rent->reltext.
  3740. (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
  3741. (get_reloc_section): Don't set ia64_info->reltext here.
  3742. (allocate_dynrel_entries): Set ia64_info->reltext here.
  3743. 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
  3744. * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
  3745. (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
  3746. function's descriptor to symbol+offset, and map local undefweak
  3747. symbol to NULL function descriptor.
  3748. (elf32_frv_relocate_section): Likewise.
  3749. 2004-02-23 Mark Kettenis <kettenis@gnu.org>
  3750. * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
  3751. M_X86_64_NETBSD.
  3752. * netbsd-core.c (M_SPARC64_OPENBSD): Define.
  3753. (netbsd_core_file_p): Set architecture from machine ID for
  3754. selected machines.
  3755. 2004-02-23 Jakub Jelinek <jakub@redhat.com>
  3756. * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
  3757. DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
  3758. 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
  3759. * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
  3760. symbols with non-default visibility.
  3761. 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
  3762. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
  3763. IMAGE_SCN_MEM_WRITE on known sections only.
  3764. 2004-02-20 Jakub Jelinek <jakub@redhat.com>
  3765. * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
  3766. symbols used in PIE relocs.
  3767. 2004-02-19 Jakub Jelinek <jakub@redhat.com>
  3768. * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
  3769. .plt sh_entsize.
  3770. 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
  3771. * configure.in: Update version to 2.15.90.
  3772. * configure: Regenerate.
  3773. 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
  3774. Richard Sandiford <rsandifo@redhat.com>
  3775. * elfxx-mips.c (mips_elf_calculate_relocation): Use
  3776. _bfd_elf_symbol_refs_local_p to decide whether to decay
  3777. a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
  3778. (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
  3779. relocs if the symbol wasn't defined by a regular object file.
  3780. Don't check the symbol's dynindx.
  3781. 2004-02-16 Andrew Cagney <cagney@redhat.com>
  3782. * bfd-in.h (file_ptr, ufile_ptr): Configure type using
  3783. @bfd_file_ptr@.
  3784. * bfd-in2.h: Re-generate.
  3785. 2004-02-14 Andrew Cagney <cagney@redhat.com>
  3786. * configure.host (HDEFINES): When hppa*-*-hpux*, define
  3787. _LARGEFILE64_SOURCE.
  3788. 2004-02-13 Andrew Cagney <cagney@redhat.com>
  3789. * elf.c (vma_page_aligned_bias): New function.
  3790. (assign_file_positions_except_relocs)
  3791. (assign_file_positions_for_segments): Replace broken modulo
  3792. arithmetic with call to vma_page_aligned_bias.
  3793. 2004-02-11 Andrew Cagney <cagney@redhat.com>
  3794. * bfd-in.h: Update copyright.
  3795. (bfd_tell): Change return type to file_ptr.
  3796. * bfd-in2.h: Re-generate.
  3797. * cache.c: Update copyright.
  3798. (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
  3799. parameter.
  3800. (close_one): Use real_ftell.
  3801. * bfdio.c: Update copyright.
  3802. (real_ftell, real_fseek): New functions.
  3803. (bfd_tell): Use real_fseek and real_ftell, change return type to
  3804. file_ptr.
  3805. (bfd_seek): Use real_ftell and real_fseek, change type of
  3806. file_position to a file_ptr.
  3807. * libbfd-in.h: Update copyright.
  3808. (real_ftell, real_fseek): Declare.
  3809. * libbfd.h: Re-generate.
  3810. * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
  3811. fseeko and fseeko64. Determine bfd_file_ptr.
  3812. * configure: Re-generate.
  3813. * config.in: Re-generate.
  3814. 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
  3815. * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
  3816. * elf32-h8300.c: Likewise.
  3817. 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
  3818. Nick Clifton <nickc@redhat.com>
  3819. * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
  3820. GOT entries with no associated GOT subsection.
  3821. 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
  3822. * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
  3823. * elf.c (swap_out_syms): Use it to decide whether local section
  3824. symbols should be named.
  3825. * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
  3826. * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
  3827. (elf_backend_name_local_section_symbols): Define.
  3828. * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
  3829. 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
  3830. * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
  3831. (elfNN_ia64_relax_section): Optimize brl to br during the relax
  3832. finalize pass.
  3833. 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
  3834. * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
  3835. to bfd_link_hash_entry passed by reference to
  3836. _bfd_generic_link_add_one_symbol.
  3837. 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
  3838. * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
  3839. relocations against dynamic symbols.
  3840. 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
  3841. * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
  3842. change.
  3843. 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
  3844. * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
  3845. * bfd-in2.h, libbfd.h: Rebuilt.
  3846. 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
  3847. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
  3848. IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
  3849. flag has been cleared.
  3850. 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
  3851. * coff-h8300.c: Add and adjust comments about relaxation.
  3852. * elf32-h8300.c: Likewise.
  3853. 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
  3854. * coff-h8300.c: Fix comment typos.
  3855. * elf32-h8300.c: Likewise.
  3856. 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
  3857. * coff-h8300.c: Add comments about relaxation.
  3858. * elf32-h8300.c: Likewise.
  3859. 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  3860. * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
  3861. throughout.
  3862. * aclocal.m4: Regenerate.
  3863. * configure: Regenerate.
  3864. 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
  3865. * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
  3866. mips_elf64_rtype_to_howto instead of using howto_table.
  3867. 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
  3868. * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
  3869. the .plt section.
  3870. (elf32_arm_check_relocs): Don't increment the PLT refcount for
  3871. relocs which would not use the PLT.
  3872. 2004-01-13 Alan Modra <amodra@bigpond.net.au>
  3873. * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
  3874. (ppc64_elf_gc_sweep_hook): Likewise.
  3875. (ppc64_elf_size_dynamic_sections): Test for .plt directly.
  3876. 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
  3877. Adds linker relaxation support for bit manipulation insns like
  3878. band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
  3879. bst, btst, bxor.
  3880. * elf32-h8300.c: Opcode for bit manipulation insn is checked in
  3881. elf32_h8_relax_section function while relxation for aa:16 and aa:32.
  3882. * coff-h8300.c: Opcode for bit manipulation insn is checked in
  3883. h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
  3884. 2004-01-12 Alan Modra <amodra@bigpond.net.au>
  3885. * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
  3886. 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
  3887. * elf32-h8300.c: Fix formatting.
  3888. 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
  3889. * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
  3890. dynamic object is present. Declare r_symndx and h in an inner
  3891. scope.
  3892. * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
  3893. 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
  3894. * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
  3895. (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
  3896. (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
  3897. identically. Do not emit PC24 relocations for shared libraries.
  3898. (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
  3899. identically. Don't adjust pc_count.
  3900. (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
  3901. Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
  3902. adjust count for branch relocations.
  3903. (allocate_dynrelocs): Correct typo in call to
  3904. WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
  3905. PC24 or PLT32 relocs when linking.
  3906. 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  3907. * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
  3908. relocation howto with ARM_26 one for consistency.
  3909. (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
  3910. that will be converted to ARM_26D ones, since we always want 'done'
  3911. relocations to be reflected in section's data.
  3912. (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
  3913. offset.
  3914. (_bfd_final_link_relocate): Do not modify "inplace" data, if not
  3915. requested.
  3916. 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  3917. * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
  3918. are not partial_inplace during a relocatable link.
  3919. 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
  3920. * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
  3921. if no dynamic object is present. Declare r_symndx and h in an
  3922. inner scope.
  3923. 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
  3924. * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
  3925. trampoline if it is known out of range.
  3926. 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
  3927. 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
  3928. * elf32-frv.c (_frv_osec_readonly_p): New.
  3929. (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
  3930. undefweak symbol.
  3931. (_frv_count_got_plt_entries): Adjust expected count accordingly.
  3932. (elf32_frv_relocate_section): Likewise. Error out if attempting
  3933. to emit rofixups or dynamic relocs in read-only segments. Use
  3934. _bfd_elf_section_offset to adjust r_offsets in rofixups and
  3935. dynamic relocations.
  3936. 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
  3937. * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
  3938. relocations or fixups involving merged sections correctly. Avoid
  3939. crash when undefined symbol is referenced by R_FRV_32 or
  3940. R_FRV_FUNCDESC_VALUE.
  3941. 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
  3942. * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
  3943. input section holding local symbol to addend of R_FRV_32 or
  3944. R_FRV_FUNCDESC_VALUE dynamic relocation.
  3945. 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
  3946. * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
  3947. (elf32_frv_always_size_sections): Don't store pointer to
  3948. __stacksize symbol in sec_info.
  3949. (elf32_frv_modify_segment_map): Look it up here.
  3950. 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
  3951. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
  3952. of the lazy PLT entry, not only its offset, as the low word of a
  3953. function descriptor.
  3954. 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
  3955. * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
  3956. if a hash table entry already exists but is not a definition.
  3957. 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
  3958. * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
  3959. (_frv_add_rofixup): Don't inline.
  3960. (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
  3961. for undefweak symbols.
  3962. (elf32_frv_relocate_section): Avoid crash while computing
  3963. relocation when linking with shared library. Only emit rofixups
  3964. and dynamic relocations for alloc&load sections. Mark binaries
  3965. with inter-segment relocations for relocation as a unit.
  3966. (_frv_create_got_section): Rename .rofixup.got to .rofixup.
  3967. (DEFAULT_STACK_SIZE): New.
  3968. (_frv_count_got_plt_entries): Fix thinko in deciding whether to
  3969. emit rofixups or dynamic relocs when linking dynamic non-PIE
  3970. executables.
  3971. (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
  3972. shared libs too. Reserve the last entry for the GOT pointer.
  3973. (elf32_frv_finish_dynamic_sections): Emit it.
  3974. (elf32_frv_always_size_sections): New.
  3975. (elf32_frv_modify_segment_map): New.
  3976. (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
  3977. sections.
  3978. (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
  3979. (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
  3980. (elf_backend_always_size_sections): New.
  3981. (elf_backend_modify_segment_map): New.
  3982. 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
  3983. * config.bfd: Added frv-*-*linux*.
  3984. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
  3985. ABS section, instead of crashing.
  3986. (elf32_frv_relocate_section): Don't crash before warning about
  3987. different segments in non-PIC relocation.
  3988. 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
  3989. * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
  3990. relocs to undefweak symbols.
  3991. (elf32_frv_relocate_section): Ditto for undefined symbols.
  3992. 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
  3993. * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
  3994. gotfixup section was created.
  3995. 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
  3996. * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
  3997. FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
  3998. complain_overflow_signed.
  3999. * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
  4000. have not been allocated.
  4001. (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
  4002. privfd only if dynamic sections were created.
  4003. (elf32_frv_relocate_section): Compute gprel_segment, and use it
  4004. for GPREL relocs. When linking relocatable FDPIC executables,
  4005. emit warnings for relocations that would be illegal on PIE or
  4006. shared libraries. Emit rofixup for R_FRV_32 only if input object
  4007. is not FDPIC.
  4008. (_frv_create_got_section): Define _gp symbol in the rofixup
  4009. section.
  4010. (elf32_frv_finish_dynamic_sections): If rofixups needed but
  4011. dynamic sections missing, error out requesting -melf32frvfd.
  4012. 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
  4013. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
  4014. computation of addends from section and global or local symbol
  4015. value. Change return type to bfd_boolean, and return a failure if
  4016. a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
  4017. nonzero addend is required.
  4018. (elf32_frv_relocate_section): Likewise. Print error for
  4019. unsupported nonzero addends.
  4020. 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
  4021. * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
  4022. force everything local.
  4023. (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
  4024. * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
  4025. (frv_gotfixup_section): New.
  4026. (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
  4027. (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
  4028. and relocsfdv.
  4029. (_frv_add_rofixup): New.
  4030. (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
  4031. fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
  4032. improve some ugly conditions.
  4033. (elf32_frv_relocate_section): Likewise. Reject inter-segment
  4034. relocations in fdpic.
  4035. (_frv_create_got_section): Create .rofixup.got section.
  4036. (struct _frv_dynamic_got_info): Added fixups.
  4037. (_frv_count_got_plt_entries): Account in-GOT relocations into
  4038. relocs32, relocsfd and relocsfdv. Account them into relocs or
  4039. fixups, as appropriate.
  4040. (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
  4041. sizing of gotrel.
  4042. (elf32_frv_finish_dynamic_sections): Verify that the right number
  4043. of relocations and fixups was generated.
  4044. (elf32_frv_check_relocs): Compute relocs32, relocsfd and
  4045. relocsfdv.
  4046. * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
  4047. SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
  4048. (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
  4049. descriptor of a (formerly-)global symbol is local.
  4050. (struct frv_pic_relocs_info): Adjust comments.
  4051. (_frv_emit_got_relocs_plt_entries): Adjust.
  4052. (elf32_frv_relocate_section): Likewise.
  4053. (_frv_count_got_plt_entries): Likewise.
  4054. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
  4055. symbol's value to addend in the common preamble. Decay dynamic
  4056. symbols to section+offset if they bind or call locally, for GOT
  4057. and FUNCDESC_VALUE, respectively.
  4058. (elf32_frv_relocate_section): Likewise.
  4059. (elf32_frv_check_relocs): Don't register as dynamic symbols of
  4060. internal or hidden visibility.
  4061. 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
  4062. * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
  4063. argument, so as to not call _bfd_elf_rel_local_sym to compute it.
  4064. (elf32_frv_relocate_section): Pass relocation addend in. Use
  4065. original relocation addend to look up the got relocs/plt entries
  4066. table. Do not call _bfd_elf_rel_local_sym. Don't error out when
  4067. processing relocations that reference .scommon symbols.
  4068. 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
  4069. Introduce support for dynamic linking.
  4070. * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
  4071. (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
  4072. elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
  4073. (frv_reloc_type_lookup): Return REL howtos for executables and
  4074. dynamic libraries.
  4075. (frv_info_to_howto_rel): New.
  4076. (struct frv_elf_link_hash_table): New.
  4077. (frv_hash_table, frv_got_section, frv_gotrel_section,
  4078. frv_plt_section, frv_pltrel_section, frv_relocs_info,
  4079. frv_got_initial_offset, frv_plt_initial_offset): New macros.
  4080. (frv_elf_link_hash_table_create): New.
  4081. (struct frv_pic_relocs_info): New.
  4082. (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
  4083. (frv_pic_relocs_info_find): New.
  4084. (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
  4085. New.
  4086. (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
  4087. (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
  4088. (_frv_emit_got_relocs_plt_entries): New.
  4089. (elf32_frv_relocate_section): Add support for dynamic linking.
  4090. Handle new relocations.
  4091. (_frv_create_got_section): New.
  4092. (elf32_frv_create_dynamic_sections): New.
  4093. (ELF_DYNAMIC_INTERPRETER): New.
  4094. (struct _frv_dynamic_got_info): New.
  4095. (_frv_count_got_plt_entries): New.
  4096. (struct _frv_dynamic_got_plt_info): New.
  4097. (_frv_compute_got_alloc_data): New.
  4098. (_frv_get_got_entry, _frv_get_fd_entry): New.
  4099. (_frv_assign_got_entries, _frv_assign_plt_entries): New.
  4100. (_frv_resolve_final_relocs_info): New.
  4101. (elf32_frv_size_dynamic_sections): New.
  4102. (elf32_frv_finish_dynamic_sections): New.
  4103. (elf32_frv_adjust_dynamic_symbol): New.
  4104. (elf32_frv_finish_dynamic_symbol): New.
  4105. (elf32_frv_check_relocs): Handle new relocs. Explain how the
  4106. whole thing works.
  4107. (elf_info_to_howto_rel): Define.
  4108. (bfd_elf32_bfd_link_hash_table_create): Define.
  4109. (elf_backend_create_dynamic_sections): Define.
  4110. (elf_backend_adjust_dynamic_symbol): Define.
  4111. (elf_backend_size_dynamic_sections): Define.
  4112. (elf_backend_finish_dynamic_symbol): Define.
  4113. (elf_backend_finish_dynamic_sections): Define.
  4114. (elf_backend_want_got_sym): Define.
  4115. (elf_backend_got_header_size): Define.
  4116. (elf_backend_want_got_plt): Define.
  4117. (elf_backend_plt_readonly): Define.
  4118. (elf_backend_want_plt_sym): Define.
  4119. (elf_backend_plt_header_size): Define.
  4120. (elf_backend_may_use_rel_p): Define.
  4121. (elf_backend_may_use_rela_p): Define.
  4122. (elf_backend_default_use_rela_p): Define.
  4123. 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
  4124. * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
  4125. R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
  4126. R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
  4127. (frv_reloc_map): Map the corresponding BFD relocs to them.
  4128. (frv_reloc_type_lookup): ... and back to BFD relocs.
  4129. * reloc.c: New relocs.
  4130. * bfd-in2.h, libbfd.h: Rebuilt.
  4131. 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
  4132. * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
  4133. R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
  4134. R_FRV_FUNCDESC_GOTLO): New.
  4135. (frv_reloc_map): Map the corresponding BFD relocs to them.
  4136. (frv_reloc_type_lookup): ... and back to BFD relocs.
  4137. * reloc.c: New relocs.
  4138. * bfd-in2.h, libbfd.h: Rebuilt.
  4139. 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  4140. * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
  4141. targets to support pages of up to 64kB.
  4142. (elf32_bed): Redefine to get a separate backend data structure for
  4143. traditional targets.
  4144. * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
  4145. targets to support pages of up to 64kB.
  4146. (elf64_bed): Redefine to get a separate backend data structure for
  4147. traditional targets.
  4148. * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
  4149. targets to support pages of up to 64kB.
  4150. (elf32_bed): Redefine to get a separate backend data structure for
  4151. traditional targets.
  4152. 2004-01-04 Mark Kettenis <kettenis@gnu.org>
  4153. * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
  4154. 2004-01-02 Mark Kettenis <kettenis@gnu.org>
  4155. * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
  4156. (elf_i386_grok_psinfo): Likewise.
  4157. 2004-01-02 Bernardo Innocenti <bernie@develer.com>
  4158. * config.bfd: Add m68k-uClinux target.
  4159. 2004-01-01 Grant Edwards <grante@visi.com>
  4160. * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
  4161. * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
  4162. (elf32_h8_gc_sweep_hook): New function.
  4163. (elf_backend_gc_mark_hook): Define.
  4164. (elf_backend_gc_sweep_hook): Define.
  4165. (elf_backend_can_gc_sections): Define.
  4166. For older changes see ChangeLog-0203
  4167. Copyright (C) 2004 Free Software Foundation, Inc.
  4168. Copying and distribution of this file, with or without modification,
  4169. are permitted in any medium without royalty provided the copyright
  4170. notice and this notice are preserved.
  4171. Local Variables:
  4172. mode: change-log
  4173. left-margin: 8
  4174. fill-column: 74
  4175. version-control: never
  4176. End: